aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf64-sparc.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2003-06-19 13:21:53 +0000
committerAlan Modra <amodra@gmail.com>2003-06-19 13:21:53 +0000
commit83615de03f22200881e6caee53cded9cb8ca3308 (patch)
tree54a0149f91993736a544ebd6f04b61ecebdb9a80 /bfd/elf64-sparc.c
parent6bc8652b47c217ea4a9f6a264878d54772abb2fe (diff)
downloadgdb-83615de03f22200881e6caee53cded9cb8ca3308.zip
gdb-83615de03f22200881e6caee53cded9cb8ca3308.tar.gz
gdb-83615de03f22200881e6caee53cded9cb8ca3308.tar.bz2
* elf64-sparc.c (sparc64_elf_relocate_section): Ignore R_SPARC_DISP32
reloc overflow on discarded eh_frame entries.
Diffstat (limited to 'bfd/elf64-sparc.c')
-rw-r--r--bfd/elf64-sparc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elf64-sparc.c b/bfd/elf64-sparc.c
index d25b429..080c4e7 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;