mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-18 23:03:29 +08:00
5cd1d8bcc2
PR ld/20868 bfd * elfnn-aarch64.c (elfNN_aarch64_tls_relax): Use 32-bit accesses to the GOT when operating in 32-bit mode. ld * testsuite/ld-aarch64/tls-relax-gd-ie-ilp32.d: New test. * testsuite/ld-aarch64/relocs-ilp32.ld: Linker script for the new test. * testsuite/ld-aarch64/aarch64-elf.exp: Run the new test.
11 lines
323 B
Makefile
11 lines
323 B
Makefile
#source: tls-relax-gd-ie.s
|
|
#as: -mabi=ilp32
|
|
#ld: -m [aarch64_choose_ilp32_emul] -T relocs-ilp32.ld -e0
|
|
#objdump: -dr
|
|
#...
|
|
+10000: 90000080 adrp x0, 20000 <_GLOBAL_OFFSET_TABLE_>
|
|
+10004: b9400400 ldr w0, \[x0, #4\]
|
|
+10008: d53bd041 mrs x1, tpidr_el0
|
|
+1000c: 0b000020 add w0, w1, w0
|
|
+10010: b9400000 ldr w0, \[x0\]
|