[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gold/13019] "error: load segment overlap" when linking Linux kernel
From: |
luto at mit dot edu |
Subject: |
[Bug gold/13019] "error: load segment overlap" when linking Linux kernel |
Date: |
Sat, 23 Jul 2011 17:42:53 +0000 |
http://sourceware.org/bugzilla/show_bug.cgi?id=13019
--- Comment #3 from Andy Lutomirski <luto at mit dot edu> 2011-07-23 17:42:24
UTC ---
(In reply to comment #2)
> What is the change to the linker script that causes this to happen?
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=9fd67b4ed0714ab718f1f9bd14c344af336a6df7
The segment overlap error is correct and I'll fix it in the linker script. The
dot error looks like a bug.
This construct in SECTIONS is the problem, I think:
.vsyscall {
*(.vsyscall_0)
. = 1024;
*(.vsyscall_1)
}
AFAICT the bfd linker thinks that assignments to . inside a section are
section-relative but gold thinks they're absolute. The documentation reference
is escaping me at the moment.
--
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.