From: Alexandre Oliva Date: Thu, 15 Nov 2001 04:13:35 +0000 (+0000) Subject: * elf64-sparc.c (sparc64_elf_relocate_section): Disregard X-Git-Tag: cygnus_cvs_20020108_pre~643 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6361c4c9bcb71c4218afd203fcd017fd9f5cbe39;p=external%2Fbinutils.git * elf64-sparc.c (sparc64_elf_relocate_section): Disregard overflows in the .stab section. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 3c429ef..0c3a54c 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2001-11-15 Alexandre Oliva + + * elf64-sparc.c (sparc64_elf_relocate_section): Disregard + overflows in the .stab section. + 2001-11-14 Daniel Jacobowitz * bfd-in.h (bfd_elf32_discard_info): Add prototype. diff --git a/bfd/elf64-sparc.c b/bfd/elf64-sparc.c index 19750a8..9e06d60 100644 --- a/bfd/elf64-sparc.c +++ b/bfd/elf64-sparc.c @@ -2627,6 +2627,16 @@ sparc64_elf_relocate_section (output_bfd, info, input_bfd, input_section, { const char *name; + /* 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 in this case. */ + if (r_type == R_SPARC_32 + && (input_section->flags & SEC_DEBUGGING) != 0 + && strcmp (bfd_section_name (input_bfd, input_section), + ".stab") == 0) + break; + if (h != NULL) { if (h->root.type == bfd_link_hash_undefweak