diff options
author | Eric Botcazou <ebotcazou@libertysurf.fr> | 2005-01-05 15:24:56 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@libertysurf.fr> | 2005-01-05 15:24:56 +0000 |
commit | 8af139b3f9d848a998f4b41ffdfe8b3723b39412 (patch) | |
tree | ba2abc02674c47b8b8fee8d0ae46842022cea31e /bfd | |
parent | 845e9b51088a3a6f4593c18dc2a44419045756f7 (diff) | |
download | gdb-8af139b3f9d848a998f4b41ffdfe8b3723b39412.zip gdb-8af139b3f9d848a998f4b41ffdfe8b3723b39412.tar.gz gdb-8af139b3f9d848a998f4b41ffdfe8b3723b39412.tar.bz2 |
* elf64-sparc.c (sparc64_elf_relocate_section): Ignore overflows
from STABS debugging sections again.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/elf64-sparc.c | 10 |
2 files changed, 12 insertions, 3 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 3649cf8..831b9e1 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2005-01-05 Eric Botcazou <ebotcazou@libertysurf.fr> + + * elf64-sparc.c (sparc64_elf_relocate_section): Ignore overflows + from STABS debugging sections again. + 2005-01-05 Fred Fish <fnf@specifixinc.com> * dwarf2.c (struct dwarf2_debug): Add info_ptr_unit member. diff --git a/bfd/elf64-sparc.c b/bfd/elf64-sparc.c index 01b80cd..6ffad92 100644 --- a/bfd/elf64-sparc.c +++ b/bfd/elf64-sparc.c @@ -2633,10 +2633,14 @@ sparc64_elf_relocate_section (output_bfd, info, input_bfd, input_section, /* The Solaris native linker silently disregards overflows. We don't, but this breaks stabs debugging info, whose relocations are only 32-bits wide. Ignore - overflows for discarded entries. */ + overflows in this case and also for discarded entries. */ if ((r_type == R_SPARC_32 || r_type == R_SPARC_DISP32) - && _bfd_elf_section_offset (output_bfd, info, input_section, - rel->r_offset) == (bfd_vma) -1) + && (((input_section->flags & SEC_DEBUGGING) != 0 + && strcmp (bfd_section_name (input_bfd, input_section), + ".stab") == 0) + || _bfd_elf_section_offset (output_bfd, info, + input_section, + rel->r_offset) == (bfd_vma)-1)) break; if (h != NULL) |