mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-03 04:12:10 +08:00
b436d85411
* 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.
9 lines
225 B
Makefile
9 lines
225 B
Makefile
#source: unresolved-1.s
|
|
#ld: --warn-unresolved tmpdir/mixed-lib.so
|
|
#warning: \(\.text\+0x8\): warning: undefined reference to `foo'
|
|
#readelf: -r
|
|
|
|
Relocation section '\.rel\.dyn' .*
|
|
Offset .*
|
|
.* R_ARM_GLOB_DAT +00000000 +foo
|