mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-27 04:52:05 +08:00
e30d1fa1bf
These ilp32 relocations were missing for some reason. bfd/ChangeLog: * elfnn-aarch64.c: Enable MOVW_PREL relocs for ELF32. include/ChangeLog: * elf/aarch64.h (R_AARCH64_P32_MOVW_PREL_G0): Define. (R_AARCH64_P32_MOVW_PREL_G0_NC): Define. (R_AARCH64_P32_MOVW_PREL_G1): Define. ld/ChangeLog: * testsuite/ld-aarch64/aarch64-elf.exp: Add emit-relocs-22 and -23. * testsuite/ld-aarch64/emit-relocs-22.d: New test. * testsuite/ld-aarch64/emit-relocs-22.s: New test. * testsuite/ld-aarch64/emit-relocs-23.d: New test. * testsuite/ld-aarch64/emit-relocs-23.s: New test.
16 lines
408 B
Makefile
16 lines
408 B
Makefile
#source: emit-relocs-23.s
|
|
#as: -mabi=ilp32
|
|
#ld: -m [aarch64_choose_ilp32_emul] -T relocs-ilp32.ld --defsym foo=0x12345678 -e0 --emit-relocs
|
|
#objdump: -dr
|
|
|
|
.*: +file format .*
|
|
|
|
|
|
Disassembly of section \.text:
|
|
|
|
.* <\.text>:
|
|
+10000: 728acf0d movk w13, #0x5678
|
|
+10000: R_AARCH64_P32_MOVW_PREL_G0_NC foo
|
|
+10004: 52a24671 mov w17, #0x12330000 // #305332224
|
|
+10004: R_AARCH64_P32_MOVW_PREL_G1 foo
|