binutils-gdb/ld/testsuite/ld-aarch64/reloc-overflow-1.s
Nick Clifton 027e9c750c Add a more helpful warning message to explain why some AArch64 relocations can overflow.
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.
2016-02-09 10:47:54 +00:00

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]"