mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-01-21 00:15:13 +00:00
* elf64-sparc.c (sparc64_elf_relocate_section): Ignore R_SPARC_DISP32
reloc overflow on discarded eh_frame entries.
This commit is contained in:
parent
6bc8652b47
commit
83615de03f
@ -1,3 +1,8 @@
|
||||
2003-06-19 Alan Modra <amodra@bigpond.net.au>
|
||||
|
||||
* elf64-sparc.c (sparc64_elf_relocate_section): Ignore R_SPARC_DISP32
|
||||
reloc overflow on discarded eh_frame entries.
|
||||
|
||||
2003-06-19 Alan Modra <amodra@bigpond.net.au>
|
||||
|
||||
* elf64-ppc.c (toc_adjusting_stub_needed): New function.
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user