How to fix a module's Section mismatch warnings?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I have read that, "These are typically caused by an .text function calling
 into .init.text code ie) code that is declared as __init, __devinit, etc.."

I am compiling a GPL'd, but not in-kernel, driver and I see several
 Section mismatch warnings.  And I am seeing kernel panics while
 trying to use the driver.  I would like to fix the issues, but I don't
 recognize any of the referenced code from the warnings in the
 driver code.  How do I figure out where to fix it?

I have googled for solutions/guidance, but all I can find is generic
 recommendations to "don't do that", or specific patched which fixed
 similar warnings.  I don't know how to correlate the warnings to
 the code.

The only '__init' or '__exit' usages in the code in question are
 the blah_init_module and blah_cleanup_module functions.

These are the warnings:

WARNING: vmlinux - Section mismatch: reference to
.init.text:start_kernel from .text between 'is386' (at offset
0xc0401166) and 'check_x87'
WARNING: vmlinux - Section mismatch: reference to .init.text: from
.text between 'rest_init' (at offset 0xc04012ef) and 'try_name'
WARNING: vmlinux - Section mismatch: reference to
.init.text:__alloc_bootmem from .text between 'cpu_init' (at offset
0xc040c8b2) and 'c_start'
WARNING: vmlinux - Section mismatch: reference to .init.text: from
.text between 'online_page' (at offset 0xc041c703) and
'free_init_pages'
WARNING: vmlinux - Section mismatch: reference to
.init.text:__alloc_bootmem from .text between 'vgacon_startup' (at
offset 0xc0508f83) and 'vgacon_scrolldelta'
WARNING: vmlinux - Section mismatch: reference to
.init.data:logo_linux_clut224 from .text between 'fb_find_logo' (at
offset 0xc0511910) and 'cfb_fillrect'
WARNING: vmlinux - Section mismatch: reference to
.init.text:reserve_ibft_region from __ksymtab between
'__ksymtab_reserve_ibft_region' (at offset 0xc0673dc8) and
'__ksymtab_ibft_addr'
WARNING: vmlinux - Section mismatch: reference to .init.text: from
.data between 'apic_bigsmp' (at offset 0xc068b744) and 'cpu.4831'


Any pointers greatly appreciated.  I can provide more info as required.

-Bob Beers

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux