]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
_bfd_mips_elf_final_link: Notify user about wrong .reginfo size
authorVlad Ivanov <vlad@ivanov.email>
Fri, 12 Jan 2018 09:25:11 +0000 (09:25 +0000)
committerMaciej W. Rozycki <macro@mips.com>
Fri, 12 Jan 2018 09:25:11 +0000 (09:25 +0000)
commit58807c48a5a317ad3e2d39a8755168a3d4d5fdf8
treefefa7631f67b46289bf2cb266a49b2a22b5ec339
parent97a232d7335f3bd0231fd9cd39455bde1d563922
_bfd_mips_elf_final_link: Notify user about wrong .reginfo size

One of assertions in _bfd_mips_elf_final_link could be triggered by
a combination of input files and a linker script.  This happens when
either the input doesn't contain .reginfo section or when this section
is oversized.  This patch replaces the assertion with a more useful
error message.

* elfxx-mips.c (_bfd_mips_elf_final_link): Notify user when
.reginfo section has wrong size.
bfd/ChangeLog
bfd/elfxx-mips.c