https://sourceware.org/bugzilla/show_bug.cgi?id=19567
--- Comment #6 from H.J. Lu <hjl.tools at gmail dot com> ---
To access address x80000054, we do
[hjl@gnu-6 pr19567]$ cat z.s
.globl _start
_start:
movabs $_start,%rax
movabs _start,%rax
[hjl@gnu-6 pr19567]$ make LD=ld z
as --x32 -o z.o z.s
ld -m elf32_x86_64 -Ttext-segment 0x80000000 -o z z.o
[hjl@gnu-6 pr19567]$ objdump -dw z
z: file format elf32-x86-64
Disassembly of section .text:
80000054 <_start>:
80000054: 48 b8 54 00 00 80 00 00 00 00 movabs $0x80000054,%rax
8000005e: 48 a1 54 00 00 80 00 00 00 00 movabs 0x80000054,%rax
[hjl@gnu-6 pr19567]$
--
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