On Friday 30 June 2006 09:50, Miao Qingjun wrote:
> Hi,
>
> Two problems
>
> First one,
> when building kernel and LKMs,
> WARNING: vmlinux - Section mismatch: reference to .init.text: from .plt
> after '' (at offset 0x8347e44) WARNING: vmlinux - Section mismatch:
> reference to .init: from .plt after '' (at offset 0x8347e64) WARNING:
> vmlinux - Section mismatch: reference to .init.setup: from .plt after ''
> (at offset 0x8347ea4) WARNING: vmlinux - Section mismatch: reference to
> .init.text:nosmp from .plt after '' (at offset 0x8347f20) WARNING: vmlinux
> - Section mismatch: reference to .init.setup:__setup_nosmp from .plt after
> '' (at offset 0x8347f28) WARNING: vmlinux - Section mismatch: reference to
> .init.text:maxcpus from .plt after '' (at offset 0x8347f2c) ...
> ...
>
> So when gdb loads LKM symbols, it seems .init.text and .exit.text sections
> overlapped with .text section.
It isn't a problem we haven't fully analized but which always seemed 
harmless - but building with dynamic linking disabled makes it go away.

However, note that it is a kernel build helper (not binutils) which doesn't 
know that .plt sections, which are needed for dynamic linking are allowed to 
reference .init* sections (while it knows this for other sections). Its 
purpose is simply to avoid .text referencing .init, since such a reference 
will fail when .init code and data get freed (soon after the boot).
-- 
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade
http://www.user-mode-linux.org/~blaisorblade

Chiacchiera con i tuoi amici in tempo reale! 
 http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com 



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

Reply via email to