https://sourceware.org/bugzilla/show_bug.cgi?id=19572
--- Comment #4 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 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
[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