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 | 7c6799b3bc66044fdb535dad05d4c5c4c749e4e6 (patch) | |
tree | 470025fab94d653a45c86a5c813e6d3c6a05f550 /bfd/elf64-sparc.c | |
parent | 232985135c105476f60eb2384f1d5c05e0e6f97e (diff) | |
download | binutils-redhat-7c6799b3bc66044fdb535dad05d4c5c4c749e4e6.tar.gz |
* elf64-sparc.c (sparc64_elf_relocate_section): Ignore overflows
from STABS debugging sections again.
Diffstat (limited to 'bfd/elf64-sparc.c')
-rw-r--r-- | bfd/elf64-sparc.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/bfd/elf64-sparc.c b/bfd/elf64-sparc.c index 01b80cda4d..6ffad929a7 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) |