Skip to contentSkip to conversation

Warning about init section reference in start_kernel (2.6.23-rc4-mm1)

DISCUSSION Mathieu Desnoyers 2 participants 2 messages Sep 6, 2007

lore
Share & tools
lore
#0 lore raw

Hi Peter,

I have seen the following warning on the recent -mm kernels when compiling a i386 kernel:

scripts/mod/modpost -o /home/compudj/git/morestable/linux-2.6-lttng/Module.symvers vmlinux.o
WARNING: vmlinux.o(.text.head+0x223): Section mismatch: reference to .init.text.1:start_kernel (between 'is386' and 'check_x87')

It looks like head.S jumps to start_kernel at the end of is386. Is this ok and valid ? If yes, then I guess modpost should be updated.

Mathieu

Signature · 3 lines
Mathieu Desnoyers
Computer Engineering Ph.D. Student, Ecole Polytechnique de Montreal
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68
#1 lore raw
Quoted 10 lines · On Thu, 6 Sep 2007 15:46:32 -0400 Mathieu Desnoyers wrote:

Hi Peter,

I have seen the following warning on the recent -mm kernels when compiling a i386 kernel:

scripts/mod/modpost -o /home/compudj/git/morestable/linux-2.6-lttng/Module.symvers vmlinux.o
WARNING: vmlinux.o(.text.head+0x223): Section mismatch: reference to .init.text.1:start_kernel (between 'is386' and 'check_x87')

It looks like head.S jumps to start_kernel at the end of is386. Is this ok and valid ? If yes, then I guess modpost should be updated.

[added Sam]

This has come up several times. Yes, it's OK.

If we could add __init_refok to is386 in head.S, this problem would be fixed, but afaik we cannot do that.
Or modpost could have special knowledge of this one quirk, but that's not desirable either.

---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***