[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/11549] Allow 32bit relocations in 64bit code
From: |
dev at sw dot ru |
Subject: |
[Bug binutils/11549] Allow 32bit relocations in 64bit code |
Date: |
5 May 2010 13:21:30 -0000 |
------- Additional Comments From dev at sw dot ru 2010-05-05 13:21 -------
Created an attachment (id=4768)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=4768&action=view)
test case
This is an extracted test case.
32bit code is built with nasm (see build script)
64bit is built using gcc.
All files should be ELF x64.
/opt/cross/bin/x86_64-linux-gcc -o bin.o -nostdlib -Wl,-M -Wl,-Bstatic -m64
-Wl,-pie test32.o test64.o
/opt/cross/lib/gcc/x86_64-linux/4.4.3/../../../../x86_64-linux/bin/ld:
test32.o: relocation R_X86_64_32 against `var' can not be used when making a
shared object; recompile with -fPIC
test32.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
--
http://sourceware.org/bugzilla/show_bug.cgi?id=11549
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
- [Bug binutils/11549] Allow 32bit relocations in 64bit code,
dev at sw dot ru <=
- [Bug binutils/11549] Allow 32bit relocations in 64bit code, hjl dot tools at gmail dot com, 2010/05/05
- [Bug binutils/11549] Allow 32bit relocations in 64bit code, dev at sw dot ru, 2010/05/05
- [Bug binutils/11549] Allow 32bit relocations in 64bit code, hjl dot tools at gmail dot com, 2010/05/05
- [Bug binutils/11549] Allow 32bit relocations in 64bit code, dev at sw dot ru, 2010/05/05
- [Bug binutils/11549] Allow 32bit relocations in 64bit code, hjl dot tools at gmail dot com, 2010/05/05
- [Bug binutils/11549] Allow 32bit relocations in 64bit code, dev at sw dot ru, 2010/05/06
- [Bug binutils/11549] Allow 32bit relocations in 64bit code, hjl dot tools at gmail dot com, 2010/05/06