Skip to contentSkip to conversation

Section mismatch warning

DISCUSSION sivaji 2 participants 3 messages Aug 23, 2007

lore
Share & tools
lore

sivaji

author
#0 lore raw

Hi,
When compiling the 2.6.23-rc3 kernel, i got following warning
messages.

WARNING: vmlinux.o(.text+0x18): Section mismatch: reference to .init.text:early_init (between '__start' and '__after_mmu_off')
WARNING: vmlinux.o(.text+0x3834): Section mismatch: reference to .init.text:machine_init (between 'start_here' and 'set_context')
WARNING: vmlinux.o(.text+0x383c): Section mismatch: reference to .init.text:MMU_init (between 'start_here' and 'set_context')
WARNING: vmlinux.o(.text+0x3866): Section mismatch: reference to .init.text:start_kernel (between 'start_here' and 'set_context')
WARNING: vmlinux.o(.text+0x386a): Section mismatch: reference to .init.text:start_kernel (between 'start_here' and 'set_context')

Processor : 8641D
Give some idea how to overcome this warning.

Signature · 2 lines
View this message in context: http://www.nabble.com/Section-mismatch-warning-tf4315101.html#a12286518
Sent from the linuxppc-dev mailing list archive at Nabble.com.
#1 lore raw
Quoted 16 lines · sivaji

Hi,
When compiling the 2.6.23-rc3 kernel, i got following warning
messages.

WARNING: vmlinux.o(.text+0x18): Section mismatch: reference to .init.text:early_init (between '__start' and '__after_mmu_off')
WARNING: vmlinux.o(.text+0x3834): Section mismatch: reference to .init.text:machine_init (between 'start_here' and 'set_context')
WARNING: vmlinux.o(.text+0x383c): Section mismatch: reference to .init.text:MMU_init (between 'start_here' and 'set_context')
WARNING: vmlinux.o(.text+0x3866): Section mismatch: reference to .init.text:start_kernel (between 'start_here' and 'set_context')
WARNING: vmlinux.o(.text+0x386a): Section mismatch: reference to .init.text:start_kernel (between 'start_here' and 'set_context')

Quoted 2 lines

Processor : 8641D
Give some idea how to overcome this warning.

There is a patch posted on the list for this. I doubt will fix these for 2.6.23 as they are just warnings.

http://patchwork.ozlabs.org/linuxppc/patch?id=13066

- k

author
#2 lore raw

Hi,
I applied the patch(13066). After that i got following error.
arch/powerpc/kernel/vmlinux.lds:59: parse error

I added the following lines in the vmlinux.lds file
ALIGN_FUNCTION();
*(.text.head)

Then i removed the ALIGN_FUNCTION() in the vmlinux.lds file. The parse error was overcome. I don't know after removing the ALIGN_FUNCTION why the error was overcome.

Quoted 16 lines

Hi,
When compiling the 2.6.23-rc3 kernel, i got following warning
messages.

WARNING: vmlinux.o(.text+0x18): Section mismatch: reference to .init.text:early_init (between '__start' and '__after_mmu_off')
WARNING: vmlinux.o(.text+0x3834): Section mismatch: reference to .init.text:machine_init (between 'start_here' and 'set_context')
WARNING: vmlinux.o(.text+0x383c): Section mismatch: reference to .init.text:MMU_init (between 'start_here' and 'set_context')
WARNING: vmlinux.o(.text+0x3866): Section mismatch: reference to .init.text:start_kernel (between 'start_here' and 'set_context')
WARNING: vmlinux.o(.text+0x386a): Section mismatch: reference to .init.text:start_kernel (between 'start_here' and 'set_context')

Quoted 2 lines

Processor : 8641D
Give some idea how to overcome this warning.

There is a patch posted on the list for this. I doubt will fix these for 2.6.23 as they are just warnings.

http://patchwork.ozlabs.org/linuxppc/patch?id=13066

- k

_______________________________________________
Linuxppc-dev mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-dev

Signature · 2 lines
View this message in context: http://www.nabble.com/Section-mismatch-warning-tf4315101.html#a12288012
Sent from the linuxppc-dev mailing list archive at Nabble.com.