diff options
author | Daniel Jacobowitz <drow@false.org> | 2006-11-03 00:58:10 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2006-11-03 00:58:10 +0000 |
commit | b1e24c0220fe6718066991999cb0a6e5b88b569d (patch) | |
tree | 8e992658791fe21d5b70757192c7d8272d64f532 /ld/testsuite/ld-discard | |
parent | 5c38167b2ce156772a524a97c9baa3bcb74c506c (diff) | |
download | gdb-b1e24c0220fe6718066991999cb0a6e5b88b569d.zip gdb-b1e24c0220fe6718066991999cb0a6e5b88b569d.tar.gz gdb-b1e24c0220fe6718066991999cb0a6e5b88b569d.tar.bz2 |
bfd/
* libbfd-in.h (_bfd_clear_contents): New prototype.
* reloc.c (_bfd_clear_contents): New.
* libbfd.h: Regenerated.
* elf32-arm.c (elf32_arm_final_link_relocate): Use
_bfd_clear_contents.
* elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
* elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
* elf32-i386.c (elf_i386_relocate_section): Likewise.
* elf32-ppc.c (ppc_elf_relocate_section): Likewise.
* elf32-s390.c (elf_s390_relocate_section): Likewise.
* elf32-sh.c (sh_elf_relocate_section): Likewise.
* elf32-xtensa.c (elf_xtensa_relocate_section): Likewise.
* elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
* elf64-s390.c (elf_s390_relocate_section): Likewise.
* elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
* elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.
* elfxx-ia64.c (elfNN_ia64_relocate_section): Set value to
zero for discarded symbols.
* elfxx-mips.c (mips_elf_calculate_relocation): Likewise.
ld/testsuite/
* ld-discard/zero-rel.d, ld-discard/zero-rel.s: New files.
Diffstat (limited to 'ld/testsuite/ld-discard')
-rw-r--r-- | ld/testsuite/ld-discard/zero-rel.d | 8 | ||||
-rw-r--r-- | ld/testsuite/ld-discard/zero-rel.s | 11 |
2 files changed, 19 insertions, 0 deletions
diff --git a/ld/testsuite/ld-discard/zero-rel.d b/ld/testsuite/ld-discard/zero-rel.d new file mode 100644 index 0000000..1f73775 --- /dev/null +++ b/ld/testsuite/ld-discard/zero-rel.d @@ -0,0 +1,8 @@ +#source: zero-rel.s +#ld: -T discard.ld +#objdump: -s -j .debug_info + +.*: file format .*elf.* + +Contents of section .debug_info: + 0000 0+( 0+)? +(\.+) .* diff --git a/ld/testsuite/ld-discard/zero-rel.s b/ld/testsuite/ld-discard/zero-rel.s new file mode 100644 index 0000000..f3f0b3c --- /dev/null +++ b/ld/testsuite/ld-discard/zero-rel.s @@ -0,0 +1,11 @@ + .text + .globl _start +_start: + + .section .debug_info + .long .Ltext + .long .Ltext + 2 + + .section .text.exit,"ax" +.Ltext: + .long 0 |