diff options
author | Nick Clifton <nickc@redhat.com> | 2012-02-24 10:54:47 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2012-02-24 10:54:47 +0000 |
commit | 4115917d4bc2522b56e1b4975a566409d7cc0717 (patch) | |
tree | 1dcfce9dba25d2f265666d9dffbca94975766082 /bfd/reloc.c | |
parent | 07c1b62689e6aeb6e86d11db17ab2a887474aec3 (diff) | |
download | fsf-binutils-gdb-4115917d4bc2522b56e1b4975a566409d7cc0717.zip fsf-binutils-gdb-4115917d4bc2522b56e1b4975a566409d7cc0717.tar.gz fsf-binutils-gdb-4115917d4bc2522b56e1b4975a566409d7cc0717.tar.bz2 |
PR ld/13730
* reloc.c (bfd_generic_get_relocated_section_contents): Issue an
error message instead of aborting, when an outofrange reloc is
encountered.
Diffstat (limited to 'bfd/reloc.c')
-rw-r--r-- | bfd/reloc.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bfd/reloc.c b/bfd/reloc.c index 778276f..ac1ecb5 100644 --- a/bfd/reloc.c +++ b/bfd/reloc.c @@ -6394,6 +6394,15 @@ bfd_generic_get_relocated_section_contents (bfd *abfd, goto error_return; break; case bfd_reloc_outofrange: + /* PR ld/13730: + This error can result when processing some partially + complete binaries. Do not abort, but issue an error + message instead. */ + link_info->callbacks->einfo + (_("%X%P: %B(%A): relocation \"%R\" goes out of range\n"), + abfd, input_section, * parent); + goto error_return; + default: abort (); break; |