https://sourceware.org/bugzilla/show_bug.cgi?id=20402
--- Comment #2 from Ard Biesheuvel <ard.biesheuvel at linaro dot org> ---
The issue can be reproduced by:
abs.s
-----
.quad foo, bar
abs.lds
-------
HIDDEN(foo = ABSOLUTE(0xff00ff11ff22ff33));
bar = ABSOLUTE(0xff44ff55ff66ff77);
Build using
aarch64-linux-gnu-gcc -pie -nostdlib -o abs -T abs.lds abs.s
which produces a binary containing the following relocations
Relocation section '.rela.dyn' at offset 0x100c8 contains 2 entries:
Offset Info Type Sym. Value Sym. Name +
Addend
000000000000 000000000403 R_AARCH64_RELATIV -ff00ee00dd00cd
000000000008 000200000101 R_AARCH64_ABS64 ff44ff55ff66ff77 bar + 0
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-binutils