bfd/
authorDaniel Jacobowitz <drow@false.org>
Fri, 20 May 2005 21:57:12 +0000 (21:57 +0000)
committerDaniel Jacobowitz <drow@false.org>
Fri, 20 May 2005 21:57:12 +0000 (21:57 +0000)
commit4dc4a9a515d83cbef3d06d21b934df37e85d663c
treec0a226ebcb87e21cb73f3bc2060fe26585e20a0f
parentdd1a320be63abd442e85607f8052ff597901efe5
bfd/
* bfd/elf32-ppc.c (struct ppc_elf_link_hash_entry): Add new field
has_sda_refs.
(ppc_elf_copy_indirect_symbol): Copy has_sda_refs.
(ppc_elf_check_relocs): Set has_sda_refs.
(ppc_elf_adjust_dynamic_symbol): Check has_sda_refs before eliminating
copy relocations.  Use has_sda_refs to place variables in .sbss.
(ppc_elf_finish_dynamic_symbol): Use has_sda_refs to place variables in
.sbss.
ld/testsuite/
* ld-powerpc/sdalib.s, ld-powerpc/sdadyn.s, ld-powerpc/sdadyn.d: New
files.
* ld-powerpc/powerpc.exp: Run the new test.
bfd/ChangeLog
bfd/elf32-ppc.c
ld/testsuite/ChangeLog
ld/testsuite/ld-powerpc/powerpc.exp
ld/testsuite/ld-powerpc/sdadyn.d [new file with mode: 0644]
ld/testsuite/ld-powerpc/sdadyn.s [new file with mode: 0644]
ld/testsuite/ld-powerpc/sdalib.s [new file with mode: 0644]