Toolchain:
- gcc 4.3.1
- binutils 2.18.50.0.7 and 2.18.50.0.8
- configured for frv-linux
Linux kernel 2.6.26 builds fine when using binutils 2.18.50.0.7, but fails as
follows with binutils 2.18.50.0.8:
<-- snip -->
...
HOSTCC scripts/kallsyms
CC init/main.o
CHK include/linux/compile.h
UPD include/linux/compile.h
CC init/version.o
CC init/do_mounts.o
LD init/mounts.o
CC init/noinitramfs.o
LD init/built-in.o
frv-linux-ld: init/mounts.o: compiled with -fpic and linked with modules that se
non-pic relocations
frv-linux-ld: failed to merge target specific data of file init/mounts.o
make[2]: *** [init/built-in.o] Error 1
<-- snip -->
- compiled the kernel with 2.18.50.0.7.
- then changed binutils to 2.18.50.0.8
Works:
frv-linux-ld -r -o init/built-in.o init/main.o init/version.o init/mounts.o
init/noinitramfs.o
Fails:
frv-linux-ld -r -o init/mounts.o init/do_mounts.o
frv-linux-ld -r -o init/built-in.o init/main.o init/version.o init/mounts.o
init/noinitramfs.o
I did an "frv-linux-objdump -Dx" on the init/mounts.o files generated
with both binutils versions, and the diff is:
--- working 2008-07-15 16:34:49.000000000 +0300
+++ broken 2008-07-15 16:34:40.000000000 +0300
architecture: fr450, flags 0x00000011:
HAS_RELOC, HAS_SYMS
start address 0x00000000
-private flags = 0x800020d: -mcpu=fr450 -mgpr-32 -msoft-float non-pic
relocations
+private flags = 0x800030d: -mcpu=fr450 -mgpr-32 -msoft-float -fpic non-pic
relocations
-fpic is *not* part of the private flags in do_mounts.o
--
Summary: regression: ld adds -fpic private flag
Product: binutils
Version: 2.19 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: ld
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: bunk at stusta dot de
CC: bug-binutils at gnu dot org
GCC build triplet: x86_64-unknown-linux-gnu
GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: frv-unknown-linux-gnu
http://sourceware.org/bugzilla/show_bug.cgi?id=6747
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
_______________________________________________
bug-binutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-binutils