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:12:47 +0000

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

--- Comment #4 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 0x80000000 -m elf32_x86_64 -o x x.o
x.o: In function `_start':
(.text+0x3): relocation truncated to fit: R_X86_64_32S against symbol `_start'
defined in .text section in x.o
x.o: In function `_start':
(.text+0xb): relocation truncated to fit: R_X86_64_32S against symbol `_start'
defined in .text section in x.o
Makefile:20: recipe for target 'x' failed
make: *** [x] Error 1
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]