bfd/
commitc82752d7ebdb347961edea2bdcdada0d0e7f4f7b
authorRichard Sandiford <rsandifo@nildram.co.uk>
Mon, 14 Mar 2011 15:52:51 +0000 (14 15:52 +0000)
committerRichard Sandiford <rsandifo@nildram.co.uk>
Mon, 14 Mar 2011 15:52:51 +0000 (14 15:52 +0000)
tree0faf0a10f128941dff335729767740cf95623890
parent383adf91e69323c38dd4b41e9fa27cc300082b19
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]