mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Warning about init section reference in start_kernel (2.6.23-rc4-mm1)
@ 2007-09-06 19:46 Mathieu Desnoyers
  2007-09-06 20:17 ` Randy Dunlap
  0 siblings, 1 reply; 2+ messages in thread
From: Mathieu Desnoyers @ 2007-09-06 19:46 UTC (permalink / raw)
  To: hpa; +Cc: akpm, linux-kernel

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

-- 
Mathieu Desnoyers
Computer Engineering Ph.D. Student, Ecole Polytechnique de Montreal
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Warning about init section reference in start_kernel (2.6.23-rc4-mm1)
  2007-09-06 19:46 Warning about init section reference in start_kernel (2.6.23-rc4-mm1) Mathieu Desnoyers
@ 2007-09-06 20:17 ` Randy Dunlap
  0 siblings, 0 replies; 2+ messages in thread
From: Randy Dunlap @ 2007-09-06 20:17 UTC (permalink / raw)
  To: Mathieu Desnoyers; +Cc: hpa, akpm, linux-kernel, sam

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-09-06 20:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-06 19:46 Warning about init section reference in start_kernel (2.6.23-rc4-mm1) Mathieu Desnoyers
2007-09-06 20:17 ` Randy Dunlap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®