Re: [PATCH] ignore smp_locks section warnings from init/exit code

Randy.Dunlap
2006-06-12T00:14:54Z

On Sun, 11 Jun 2006 19:25:58 -0400 Jeff Dike wrote:

> On Thu, Jun 08, 2006 at 08:35:49PM +0200, Sam Ravnborg wrote:
> > As for .bss this is a much more generic section - so for now this is not
> > added. Can you explain why there is a reference to do_mount_root from
> > .bss or is this a bug in modpost pointing out something wrong?
>
> For me, the ld complaints are completely opaque. Can you give me a
> clue how you go about figuring out where the complaint is coming from?
>
> This is what I get with UML/x86_64 with rc6-mm2:
> WARNING: vmlinux - Section mismatch: reference to .init.text:huft_free from .bss between 'stdout@@GLIBC_2.2.5' (at offset 0x6027b748) and 'completed.6111'
>
> gdb tells me:
> (gdb) x/4xa 0x6027b748
> 0x6027b748 <stdout@@GLIBC_2.2.5>: 0x0 0x0
> 0x6027b758 <completed.6111+8>: 0x0 0x0
>
> So, with stdout@@GLIBC_2.2.5 at 0x6027b748 and completed.6111 at
> 0x6027b750 - right next to each other - there would seem to be nothing
> between them to reference anything.

gdb says 0x6027b758 for <completed.6111>, not 0x6027b750 as you
wrote, so there's 8 more bytes for gunk there. ;)
Anyway, since I can't build UML, I'm willing to look at the
file if you can put it on a web page along with its System.map file.

> In any case, with bss containing zero-initialized stuff, I don't see
> how anything here can refer to anything anywhere else.
>
> > With the above patch we are down to two section mismatch warnings for
> > a defconfig build on x86_64.
>
> I see one (the one quoted above). Thanks for adding .plt - that made
> the build much more pleasant.

---
~Randy