Skip to contentSkip to conversation

section mismatches

DISCUSSION Andrew Morton 4 participants 7 messages May 31, 2007

lore
Share & tools
lore
#0 lore raw

Mostly from Andi's tree:

WARNING: arch/i386/kernel/head.o(.note.Xen+0x68): Section mismatch: reference to .init.text:startup_xen
WARNING: vmlinux(.text+0xc0101183): Section mismatch: reference to .init.text:start_kernel (between 'is386' and 'check_x87')
WARNING: vmlinux(.text+0xc02fc63b): Section mismatch: reference to .init.text:kernel_init (between 'rest_init' and 'alloc_node_mem_map')
WARNING: vmlinux(.text+0xc0302e16): Section mismatch: reference to .init.text: (between 'iret_exc' and '_etext')
WARNING: vmlinux(.text+0xc0302e22): Section mismatch: reference to .init.text: (between 'iret_exc' and '_etext')
WARNING: vmlinux(.text+0xc0302e2e): Section mismatch: reference to .init.text: (between 'iret_exc' and '_etext')
WARNING: vmlinux(.text+0xc0302e3a): Section mismatch: reference to .init.text: (between 'iret_exc' and '_etext')
WARNING: vmlinux(.text+0xc02fc6c7): Section mismatch: reference to .init.text:__alloc_bootmem_node (between 'alloc_node_mem_map' and 'zone_wait_table_init')
WARNING: vmlinux(.text+0xc02fc797): Section mismatch: reference to .init.text:__alloc_bootmem_node (between 'zone_wait_table_init' and 'schedule')
WARNING: vmlinux(.text+0xc0222408): Section mismatch: reference to .init.text:__alloc_bootmem (between 'vgacon_startup' and 'vgacon_scrolldelta')
WARNING: vmlinux(.text+0xc03034c1): Section mismatch: reference to .init.text: (between 'iret_exc' and '_etext')
WARNING: vmlinux(.text+0xc030360d): Section mismatch: reference to .init.text: (between 'iret_exc' and '_etext')
WARNING: vmlinux(.notes+0x3d28): Section mismatch: reference to .init.text:startup_xen

#1 lore raw
Quoted 4 lines · Andrew Morton

Mostly from Andi's tree:

WARNING: arch/i386/kernel/head.o(.note.Xen+0x68): Section mismatch: reference to .init.text:startup_xen
WARNING: vmlinux(.notes+0x3d28): Section mismatch: reference to .init.text:startup_xen

Sam has the modpost patch to fix these two.

J

#3 lore raw
Quoted 3 lines · Yinghai Lu

please check patch in following too.

http://lkml.org/lkml/2007/5/25/76

Patch looks wrong (why remove all the markings).
In output posted by Andrew there is no references to mtrr - so I expect it to be all clear in Andi's tree.

Sam

#4 lore raw
In reply to Andrew Morton
Quoted 16 lines · Andrew Morton

Mostly from Andi's tree:

WARNING: arch/i386/kernel/head.o(.note.Xen+0x68): Section mismatch: reference to .init.text:startup_xen
WARNING: vmlinux(.text+0xc0101183): Section mismatch: reference to .init.text:start_kernel (between 'is386' and 'check_x87')
WARNING: vmlinux(.text+0xc02fc63b): Section mismatch: reference to .init.text:kernel_init (between 'rest_init' and 'alloc_node_mem_map')
WARNING: vmlinux(.text+0xc0302e16): Section mismatch: reference to .init.text: (between 'iret_exc' and '_etext')
WARNING: vmlinux(.text+0xc0302e22): Section mismatch: reference to .init.text: (between 'iret_exc' and '_etext')
WARNING: vmlinux(.text+0xc0302e2e): Section mismatch: reference to .init.text: (between 'iret_exc' and '_etext')
WARNING: vmlinux(.text+0xc0302e3a): Section mismatch: reference to .init.text: (between 'iret_exc' and '_etext')
WARNING: vmlinux(.text+0xc02fc6c7): Section mismatch: reference to .init.text:__alloc_bootmem_node (between 'alloc_node_mem_map' and 'zone_wait_table_init')
WARNING: vmlinux(.text+0xc02fc797): Section mismatch: reference to .init.text:__alloc_bootmem_node (between 'zone_wait_table_init' and 'schedule')
WARNING: vmlinux(.text+0xc0222408): Section mismatch: reference to .init.text:__alloc_bootmem (between 'vgacon_startup' and 'vgacon_scrolldelta')
WARNING: vmlinux(.text+0xc03034c1): Section mismatch: reference to .init.text: (between 'iret_exc' and '_etext')
WARNING: vmlinux(.text+0xc030360d): Section mismatch: reference to .init.text: (between 'iret_exc' and '_etext')
WARNING: vmlinux(.notes+0x3d28): Section mismatch: reference to .init.text:startup_xen

Some of the above happens during the MODPOST where we check modules.
The recently added trick to use __init_refok should have 'killed' at least the one referring to rest_init. But running the check on the final vmlinux have thrown the .text.init.refok into .text.
Will try to work out a fix for it.

Quoted 1 line

WARNING: vmlinux(.text+0xc0101183): Section mismatch: reference to .init.text:start_kernel (between 'is386' and 'check_x87')

I too a quick look at this one yesterday.
Code in head.S (for i386) are usually .init.text but in CONFIG_HOTPLUG_CPU it us .text. But start_kernel() is __init.
Is it correct assumed that start_kernel() is never called in the HOTPLUG case since we are dealign with CPU #2 and more?
If this is true I will introduce the .text.init.refok section.

Sam

#5 lore raw
Quoted 2 lines · On Thu, 31 May 2007 06:50:33 +0200 Sam Ravnborg <[email protected]> wrote:

Is it correct assumed that start_kernel() is never called in the HOTPLUG case since we are dealign with CPU #2 and more?

start_kernel is called once, on the boot CPU, before the other CPUs are brought up.

#6 lore raw
Quoted 7 lines · Andrew Morton
Quoted 2 lines · On Thu, 31 May 2007 06:50:33 +0200 Sam Ravnborg <[email protected]> wrote:

Is it correct assumed that start_kernel() is never called in the HOTPLUG case since we are dealign with CPU #2 and more?

start_kernel is called once, on the boot CPU, before the other CPUs are brought up.

As expectyed - thanks.
I'm buried in section mismatch warnings at the moment but will come back to this one a bit later. This needs a bit more careful thinking.

Sam