mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-21 04:42:53 +08:00
027e9c750c
bfd * elfnn-aarch64.c (elfNN_aarch64_relocate_section): Add a more helpful warning message to explain why certain AArch64 relocs might overflow. ld * testsuite/ld-aarch64/reloc-overflow-bad.d: New test. * testsuite/ld-aarch64/reloc-overflow-1.s: New source file. * testsuite/ld-aarch64/reloc-overflow-2.s: New source file. * testsuite/ld-aarch64/aarch64-elf.exp: Run the new test.
15 lines
373 B
ArmAsm
15 lines
373 B
ArmAsm
.file "1.c"
|
|
.text
|
|
.align 2
|
|
.p2align 3,,7
|
|
.global dec
|
|
.arch armv8-a+fp+simd
|
|
//.tune generic
|
|
.type dec, %function
|
|
dec:
|
|
adrp x0, var_2
|
|
ldr w0, [x0, #:lo12:var_2]
|
|
ret
|
|
.size dec, .-dec
|
|
.ident "GCC: (GNU) 6.0.0 20160208 (experimental) [trunk revision 233206]"
|