bug-binutils
[Top][All Lists]
Advanced

[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 18:51:20 +0000

http://sourceware.org/bugzilla/show_bug.cgi?id=13019

--- Comment #4 from Andy Lutomirski <luto at mit dot edu> 2011-07-23 18:50:49 
UTC ---
(In reply to comment #3)
> (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.

I filed bug 13023 for the dot problem.  I'm not convinced that the segment
overlap is a real bug as opposed to gold just being a little stricter than the
bfd linker.

-- 
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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]