https://sourceware.org/bugzilla/show_bug.cgi?id=19572

--- Comment #5 from H.J. Lu <hjl.tools at gmail dot com> ---
[hjl@gnu-6 pr19567]$ cat x.S
    .globl _start
_start:
#ifdef __x86_64__
    mov $_start,%rax
    mov _start,%rax
#else
    mov $_start,%eax
    mov _start,%eax
#endif
[hjl@gnu-6 pr19567]$ make
gcc -mx32 -c -O2 -ffunction-sections -fPIC -o x.o x.S
./ld -Ttext-segment 0xffffffff80000000 -m elf32_x86_64 -o x x.o
objdump -dw x

x:     file format elf32-x86-64


Disassembly of section .text:

80000054 <_start>:
80000054:       48 c7 c0 54 00 00 80    mov    $0xffffffff80000054,%rax
8000005b:       48 8b 04 25 54 00 00 80         mov    0xffffffff80000054,%rax
[hjl@gnu-6 pr19567]$

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to