OSDN Git Service

bfd/
authorrsandifo <rsandifo>
Tue, 15 Mar 2011 00:52:51 +0000 (00:52 +0000)
committerrsandifo <rsandifo>
Tue, 15 Mar 2011 00:52:51 +0000 (00:52 +0000)
commitd0f0135a2ed8d6af318776d6261b19fb19110a0f
treebca8f5058e8ef464cc7025f34b5f1a4417b37596
parentce6bd363c30c273984c7b7a9ce378a13896ba1dc
bfd/
* elf32-arm.c (elf32_arm_final_link_relocate): Always fill in the
GOT entry here, rather than leaving it to finish_dynamic_symbol.
Only create a dynamic relocation for local references if
info->shared.
(allocate_dynrelocs_for_symbol): Update dynamic relocation
allocation accordingly.
(elf32_arm_finish_dynamic_symbol): Don't initialise the GOT entry here.

ld/testsuite/
* ld-arm/exec-got-1a.s, ld-arm/exec-got-1b.s, ld-arm/exec-got-1.d,
ld-arm/unresolved-1.s, ld-arm/unresolved-1.d,
ld-arm/unresolved-1-dyn.d: New tests.
* ld-arm/arm-elf.exp: Run them.
bfd/ChangeLog
bfd/elf32-arm.c
ld/testsuite/ChangeLog
ld/testsuite/ld-arm/arm-elf.exp
ld/testsuite/ld-arm/exec-got-1.d [new file with mode: 0644]
ld/testsuite/ld-arm/exec-got-1a.s [new file with mode: 0644]
ld/testsuite/ld-arm/exec-got-1b.s [new file with mode: 0644]
ld/testsuite/ld-arm/unresolved-1-dyn.d [new file with mode: 0644]
ld/testsuite/ld-arm/unresolved-1.d [new file with mode: 0644]
ld/testsuite/ld-arm/unresolved-1.s [new file with mode: 0644]