bfd/
commit4cafd9ff8e8fc7d7154f39b4d36a9f0b9de53ca6
authorDaniel Jacobowitz <dan@debian.org>
Fri, 3 Nov 2006 00:58:10 +0000 (3 00:58 +0000)
committerDaniel Jacobowitz <dan@debian.org>
Fri, 3 Nov 2006 00:58:10 +0000 (3 00:58 +0000)
tree2f50d79012023ea870d5e9f7628e684b9d6ab605
parent7ae0857aca81d00b2a980dc6a6114f2652e1cab5
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.
21 files changed:
bfd/ChangeLog
bfd/elf32-arm.c
bfd/elf32-d10v.c
bfd/elf32-hppa.c
bfd/elf32-i386.c
bfd/elf32-ppc.c
bfd/elf32-s390.c
bfd/elf32-sh.c
bfd/elf32-xtensa.c
bfd/elf64-ppc.c
bfd/elf64-s390.c
bfd/elf64-x86-64.c
bfd/elfxx-ia64.c
bfd/elfxx-mips.c
bfd/elfxx-sparc.c
bfd/libbfd-in.h
bfd/libbfd.h
bfd/reloc.c
ld/testsuite/ChangeLog
ld/testsuite/ld-discard/zero-rel.d [new file with mode: 0644]
ld/testsuite/ld-discard/zero-rel.s [new file with mode: 0644]