From: Alan Modra Date: Thu, 19 Jun 2003 13:21:53 +0000 (+0000) Subject: * elf64-sparc.c (sparc64_elf_relocate_section): Ignore R_SPARC_DISP32 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=83615de03f22200881e6caee53cded9cb8ca3308;p=binutils-gdb.git * elf64-sparc.c (sparc64_elf_relocate_section): Ignore R_SPARC_DISP32 reloc overflow on discarded eh_frame entries. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index ea57ab79fce..5304adbe681 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2003-06-19 Alan Modra + + * elf64-sparc.c (sparc64_elf_relocate_section): Ignore R_SPARC_DISP32 + reloc overflow on discarded eh_frame entries. + 2003-06-19 Alan Modra * elf64-ppc.c (toc_adjusting_stub_needed): New function. diff --git a/bfd/elf64-sparc.c b/bfd/elf64-sparc.c index d25b429337a..080c4e7b32b 100644 --- a/bfd/elf64-sparc.c +++ b/bfd/elf64-sparc.c @@ -2684,7 +2684,7 @@ sparc64_elf_relocate_section (output_bfd, info, input_bfd, input_section, overflows. We don't, but this breaks stabs debugging info, whose relocations are only 32-bits wide. Ignore overflows for discarded entries. */ - if (r_type == R_SPARC_32 + 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) break;