diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2004-08-12 15:56:05 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2004-08-12 15:56:05 +0000 |
commit | 6ba842b637dfd832f8275df28e1f0dfff755c877 (patch) | |
tree | eb81187cbd25115d6bbc45826807813415478a80 /bfd/elf32-i386.c | |
parent | 232d697cd0465d5e97929503601763cb9ffca823 (diff) | |
download | gdb-6ba842b637dfd832f8275df28e1f0dfff755c877.zip gdb-6ba842b637dfd832f8275df28e1f0dfff755c877.tar.gz gdb-6ba842b637dfd832f8275df28e1f0dfff755c877.tar.bz2 |
2004-08-12 H.J. Lu <hongjiu.lu@intel.com>
* elf32-i386.c (elf_i386_relocate_section): Report unrecognized
relocation.
Diffstat (limited to 'bfd/elf32-i386.c')
-rw-r--r-- | bfd/elf32-i386.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bfd/elf32-i386.c b/bfd/elf32-i386.c index 97891a5..e2fef2b 100644 --- a/bfd/elf32-i386.c +++ b/bfd/elf32-i386.c @@ -2039,6 +2039,13 @@ elf_i386_relocate_section (bfd *output_bfd, && ((indx = r_type - R_386_tls_offset) - R_386_ext >= R_386_tls - R_386_ext)) { + char *name = bfd_get_section_ident (input_section); + (*_bfd_error_handler) + (_("%s: unrecognized relocation (0x%x) in section `%s'"), + bfd_archive_filename (input_bfd), r_type, + name ? name : input_section->name); + if (name) + free (name); bfd_set_error (bfd_error_bad_value); return FALSE; } |