bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/19572] -Ttext-segment accepts out of range value


From: hjl.tools at gmail dot com
Subject: [Bug ld/19572] -Ttext-segment accepts out of range value
Date: Thu, 25 Feb 2016 18:13:36 +0000

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

--- Comment #5 from H.J. Lu <hjl.tools at gmail dot com> ---
address@hidden pr19567]$ cat x.S
    .globl _start
_start:
#ifdef __x86_64__
    mov $_start,%rax
    mov _start,%rax
#else
    mov $_start,%eax
    mov _start,%eax
#endif
address@hidden 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
address@hidden pr19567]$

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]