2007-02-04 22:02:10

by Miles Lane

[permalink] [raw]
Subject: 2.6.20 -- Loads of section mismatches

Are any of these worth fixing?

WARNING: vmlinux - Section mismatch: reference to
.init.data:boot_params from .text between '_text' (at offset
0xc0100036) and 'checkCPUtype'
WARNING: vmlinux - Section mismatch: reference to
.init.data:boot_params from .text between '_text' (at offset
0xc0100044) and 'checkCPUtype'
WARNING: vmlinux - Section mismatch: reference to
.init.data:init_pg_tables_end from .text between '_text' (at offset
0xc01000a6) and 'checkCPUtype'
WARNING: vmlinux - Section mismatch: reference to
.init.data:new_cpu_data from .text between 'checkCPUtype' (at offset
0xc01000d5) and 'is486'
WARNING: vmlinux - Section mismatch: reference to
.init.data:new_cpu_data from .text between 'checkCPUtype' (at offset
0xc01000df) and 'is486'
WARNING: vmlinux - Section mismatch: reference to
.init.data:new_cpu_data from .text between 'checkCPUtype' (at offset
0xc01000fe) and 'is486'
WARNING: vmlinux - Section mismatch: reference to
.init.data:new_cpu_data from .text between 'checkCPUtype' (at offset
0xc010010f) and 'is486'
WARNING: vmlinux - Section mismatch: reference to
.init.data:new_cpu_data from .text between 'checkCPUtype' (at offset
0xc0100115) and 'is486'
WARNING: vmlinux - Section mismatch: reference to
.init.data:new_cpu_data from .text between 'checkCPUtype' (at offset
0xc010011b) and 'is486'
WARNING: vmlinux - Section mismatch: reference to
.init.data:new_cpu_data from .text between 'checkCPUtype' (at offset
0xc0100121) and 'is486'
WARNING: vmlinux - Section mismatch: reference to
.init.data:new_cpu_data from .text between 'checkCPUtype' (at offset
0xc0100137) and 'is486'
WARNING: vmlinux - Section mismatch: reference to
.init.data:new_cpu_data from .text between 'checkCPUtype' (at offset
0xc0100141) and 'is486'
WARNING: vmlinux - Section mismatch: reference to
.init.data:new_cpu_data from .text between 'checkCPUtype' (at offset
0xc010014a) and 'is486'
WARNING: vmlinux - Section mismatch: reference to
.init.data:new_cpu_data from .text between 'checkCPUtype' (at offset
0xc0100150) and 'is486'
WARNING: vmlinux - Section mismatch: reference to
.init.data:new_cpu_data from .text between 'check_x87' (at offset
0xc01001b4) and 'setup_pda'
WARNING: vmlinux - Section mismatch: reference to
.init.data:new_cpu_data from .text between 'check_x87' (at offset
0xc01001d2) and 'setup_pda'
WARNING: vmlinux - Section mismatch: reference to
.init.text:start_kernel from .text between 'is386' (at offset
0xc01001ae) and 'check_x87'
WARNING: vmlinux - Section mismatch: reference to
.init.text:spawn_ksoftirqd from .text between 'init' (at offset
0xc0100392) and 'rest_init'
WARNING: vmlinux - Section mismatch: reference to
.init.text:spawn_softlockup_task from .text between 'init' (at offset
0xc0100397) and 'rest_init'
WARNING: vmlinux - Section mismatch: reference to
.init.text:APIC_init_uniprocessor from .text between 'init' (at offset
0xc010039c) and 'rest_init'
WARNING: vmlinux - Section mismatch: reference to
.init.text:sched_init_smp from .text between 'init' (at offset
0xc01003a1) and 'rest_init'
WARNING: vmlinux - Section mismatch: reference to
.init.text:usermodehelper_init from .text between 'init' (at offset
0xc01003ab) and 'rest_init'
WARNING: vmlinux - Section mismatch: reference to
.init.text:driver_init from .text between 'init' (at offset
0xc01003b0) and 'rest_init'
WARNING: vmlinux - Section mismatch: reference to
.init.text:sysctl_init from .text between 'init' (at offset
0xc01003b5) and 'rest_init'
WARNING: vmlinux - Section mismatch: reference to .init.data: from
.text between 'init' (at offset 0xc01003cf) and 'rest_init'
WARNING: vmlinux - Section mismatch: reference to .init.data: from
.text between 'init' (at offset 0xc010040d) and 'rest_init'
WARNING: vmlinux - Section mismatch: reference to
.init.text:prepare_namespace from .text between 'init' (at offset
0xc01004e5) and 'rest_init'
WARNING: vmlinux - Section mismatch: reference to
.init.text:lockdep_init from .text between 'lockdep_init_map' (at
offset 0xc012e6a9) and 'save_trace'
WARNING: vmlinux - Section mismatch: reference to
.init.text:lockdep_init from .text between 'lockdep_reset_lock' (at
offset 0xc012f3fb) and 'lockdep_off'
WARNING: vmlinux - Section mismatch: reference to
.init.text:lockdep_init from .text between '__lock_acquire' (at offset
0xc01304e4) and 'lock_acquire'
WARNING: vmlinux - Section mismatch: reference to
.init.text:__alloc_bootmem_node from .text between
'init_currently_empty_zone' (at offset 0xc013f92a) and
'free_area_init_node'
WARNING: vmlinux - Section mismatch: reference to
.init.text:zone_spanned_pages_in_node from .text between
'free_area_init_node' (at offset 0xc013fa12) and 'build_all_zonelists'
WARNING: vmlinux - Section mismatch: reference to
.init.text:zone_absent_pages_in_node from .text between
'free_area_init_node' (at offset 0xc013fa3c) and 'build_all_zonelists'
WARNING: vmlinux - Section mismatch: reference to
.init.text:zone_spanned_pages_in_node from .text between
'free_area_init_node' (at offset 0xc013fadb) and 'build_all_zonelists'
WARNING: vmlinux - Section mismatch: reference to
.init.text:zone_absent_pages_in_node from .text between
'free_area_init_node' (at offset 0xc013faec) and 'build_all_zonelists'
WARNING: vmlinux - Section mismatch: reference to .init.data: from
.text between 'free_area_init_node' (at offset 0xc013fb43) and
'build_all_zonelists'
WARNING: vmlinux - Section mismatch: reference to
.init.text:__alloc_bootmem_node from .text between 'sparse_init' (at
offset 0xc01515b2) and '__section_nr'
WARNING: vmlinux - Section mismatch: reference to
.init.data:initkmem_list3 from .text between 'set_up_list3s' (at
offset 0xc0154b74) and 'poison_obj'
WARNING: vmlinux - Section mismatch: reference to
.init.text:__alloc_bootmem from .text between 'vgacon_startup' (at
offset 0xc01f873b) and 'vgacon_scrolldelta'
WARNING: vmlinux - Section mismatch: reference to
.init.data:logo_linux_clut224 from .text between 'fb_find_logo' (at
offset 0xc01febff) and 'cfb_fillrect'
WARNING: vmlinux - Section mismatch: reference to .init.text: from
.text between 'iret_exc' (at offset 0xc02d11ae) and '_etext'
WARNING: vmlinux - Section mismatch: reference to
.init.text:start_kernel from .paravirtprobe between
'__start_paravirtprobe' (at offset 0xc03a24c4) and
'__stop_paravirtprobe'


2007-02-04 22:06:49

by Alon Bar-Lev

[permalink] [raw]
Subject: Re: 2.6.20 -- Loads of section mismatches

On 2/5/07, Miles Lane <[email protected]> wrote:
> Are any of these worth fixing?

I am preparing a patch for this.
I will submit it soon.

Best Regards,
Alon Bar-Lev.

2007-02-05 06:40:45

by Vivek Goyal

[permalink] [raw]
Subject: Re: 2.6.20 -- Loads of section mismatches

On Mon, Feb 05, 2007 at 12:06:47AM +0200, Alon Bar-Lev wrote:
> On 2/5/07, Miles Lane <[email protected]> wrote:
> >Are any of these worth fixing?
>
> I am preparing a patch for this.
> I will submit it soon.
>

Many of those warnings I have already fixed. I had posted quite a few
patches. Looks like some of these have not made into mainline yet.
For ex...

http://kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.20-rc6/2.6.20-rc6-mm3/broken-out/x86_64-mm-move-startup_32-in-texthead-section.patch

http://kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.20-rc6/2.6.20-rc6-mm3/broken-out/x86_64-mm-break-init-in-two-parts-to-avoid-modpost-warnings.patch

I think I should trace the status of all the patches I had posted.

Thanks
Vivek

2007-02-06 10:28:06

by Vivek Goyal

[permalink] [raw]
Subject: Re: 2.6.20 -- Loads of section mismatches

On Mon, Feb 05, 2007 at 11:48:57AM +0100, Andi Kleen wrote:
> Vivek Goyal <[email protected]> writes:
> >
> > http://kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.20-rc6/2.6.20-rc6-mm3/broken-out/x86_64-mm-move-startup_32-in-texthead-section.patch
> >
> > http://kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.20-rc6/2.6.20-rc6-mm3/broken-out/x86_64-mm-break-init-in-two-parts-to-avoid-modpost-warnings.patch
>
> The two part init / head.S patch was considered too intrusive late
> in the game.
> Near all of the other section patches should have made it in though.
>

Yes all others have gone in. I found one more which is present in rc-mm2, but
can't see it in rc6-mm3.

http://kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.20-rc6/2.6.20-rc6-mm2/broken-out/i386-modpost-apic-related-warning-fixes.patch

Andrew seems to have dropped it. Not sure why.

Thanks
Vivek

2007-02-06 18:09:55

by Andrew Morton

[permalink] [raw]
Subject: Re: 2.6.20 -- Loads of section mismatches

On Tue, 6 Feb 2007 15:57:54 +0530 Vivek Goyal <[email protected]> wrote:

> On Mon, Feb 05, 2007 at 11:48:57AM +0100, Andi Kleen wrote:
> > Vivek Goyal <[email protected]> writes:
> > >
> > > http://kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.20-rc6/2.6.20-rc6-mm3/broken-out/x86_64-mm-move-startup_32-in-texthead-section.patch
> > >
> > > http://kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.20-rc6/2.6.20-rc6-mm3/broken-out/x86_64-mm-break-init-in-two-parts-to-avoid-modpost-warnings.patch
> >
> > The two part init / head.S patch was considered too intrusive late
> > in the game.
> > Near all of the other section patches should have made it in though.
> >
>
> Yes all others have gone in. I found one more which is present in rc-mm2, but
> can't see it in rc6-mm3.
>
> http://kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.20-rc6/2.6.20-rc6-mm2/broken-out/i386-modpost-apic-related-warning-fixes.patch
>
> Andrew seems to have dropped it. Not sure why.

I commented it out in the series file because of clashes with git-acpi.
I'll bring it back (somehow) once Andi and Len have sorted things out.