http://sourceware.org/bugzilla/show_bug.cgi?id=13019
Summary: "error: load segment overlap" when linking Linux
kernel
Product: binutils
Version: 2.22 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: gold
AssignedTo: [email protected]
ReportedBy: [email protected]
Created attachment 5857
--> http://sourceware.org/bugzilla/attachment.cgi?id=5857
output of "readelf -lSW ./vmlinux"
When I try to build the latest kernel git tree with gold I get this error:
ld -m elf_x86_64 --build-id -o vmlinux -T arch/x86/kernel/vmlinux.lds
arch/x86/kernel/head_64.o arch/x86/kernel/head64.o arch/x86/kernel/head.o
arch/x86/kernel/init_task.o init/built-in.o --start-group usr/built-in.o
arch/x86/built-in.o kernel/built-in.o mm/built-in.o fs/built-in.o
ipc/built-in.o security/built-in.o crypto/built-in.o block/built-in.o
lib/lib.a arch/x86/lib/lib.a lib/built-in.o arch/x86/lib/built-in.o
drivers/built-in.o sound/built-in.o firmware/built-in.o
arch/x86/pci/built-in.o arch/x86/video/built-in.o net/built-in.o --end-group
.tmp_kallsyms2.o
ld: error: dot may not move backward
ld: error: dot may not move backward
ld: error: load segment overlap [0x1800000 -> 0x18940e0] and [0x1893000 ->
0x1893c10]
ld.bfd links without any problems.
The output of "readelf -lSW ./vmlinux" is attached.
Program Headers:
Type Offset VirtAddr PhysAddr FileSiz MemSiz
Flg Align
LOAD 0x200000 0xffffffff81000000 0x0000000001000000 0x7d1000
0x7d1000 R E 0x200000
LOAD 0xa00000 0xffffffff81800000 0x0000000001800000 0x0940e0
0x0940e0 RW 0x200000
LOAD 0xc00000 0xffffffffff600000 0x0000000001893000 0x001000
0x001000 R E 0x200000
LOAD 0xe00000 0x0000000000000000 0x0000000001895000 0x012500
0x012500 RW 0x200000
LOAD 0xea8000 0xffffffff818a8000 0x00000000018a8000 0x085000
0x152000 RWE 0x200000
NOTE 0x71bb34 0xffffffff8151bb34 0x000000000151bb34 0x000024
0x000024 0x4
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- 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