lkml.org 
[lkml]   [2008]   [Oct]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectPatch 1 / 1 - Fix section mismatch for i386_start_kernel
From
Hello,

Using 2.6.27 (32bit, x86) on Gentoo, I received the following error when
compiling the kernel:

---------------------------------------------------------
WARNING: vmlinux.o(.cpuinit.data+0x0): Section mismatch in reference
from the variable initial_code to the function
.init.text:i386_start_kernel()
The variable __cpuinitdata initial_code references
a function __init i386_start_kernel().
If i386_start_kernel is only used by initial_code then
annotate i386_start_kernel with a matching annotation.
---------------------------------------------------------

I found a similar error with the 64bit (x86_64) version and developed a
patch from that.

Attached is the patch and a stripped down config file to trigger the error.
[unhandled content-type:application/octet-stream][unhandled content-type:application/octet-stream]
\
 
 \ /
  Last update: 2008-10-14 19:37    [W:0.074 / U:0.152 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site