warning :section mismatch while compiling fedora 2.6.21-1.3194.fc7kernel - Embedded

This is a discussion on warning :section mismatch while compiling fedora 2.6.21-1.3194.fc7kernel - Embedded ; Hi All while compiling linux kernel downloaded from kernel.org i am getting warning as given below WARNING: vmlinux - Section mismatch: reference to .init.text:start_kernel from .text between 'is386' (at offset 0xc1001171) and 'check_x87' WARNING: vmlinux - Section mismatch: reference to ...

+ Reply to Thread
Results 1 to 3 of 3

Thread: warning :section mismatch while compiling fedora 2.6.21-1.3194.fc7kernel

  1. warning :section mismatch while compiling fedora 2.6.21-1.3194.fc7kernel

    Hi All
    while compiling linux kernel downloaded from kernel.org i am getting
    warning as given below

    WARNING: vmlinux - Section mismatch: reference
    to .init.text:start_kernel from .text between 'is386' (at offset
    0xc1001171) and 'check_x87'
    WARNING: vmlinux - Section mismatch: reference to .init.text:
    from .text between 'rest_init' (at offset 0xc10013e6) and 'try_name'
    WARNING: vmlinux - Section mismatch: reference to .init.data:
    from .text between 'probe_bigsmp' (at offset 0xc1002012) and
    'init_apic_ldr'
    WARNING: vmlinux - Section mismatch: reference
    to .init.text:find_unisys_acpi_oem_table from .text between
    'acpi_madt_oem_check' (at offset 0xc1002220) and 'enable_apic_mode'
    WARNING: vmlinux - Section mismatch: reference
    to .init.textarse_unisys_oem from .text between
    'acpi_madt_oem_check' (at offset 0xc100226d) and 'enable_apic_mode'
    WARNING: vmlinux - Section mismatch: reference
    to .init.text:setup_unisys from .text between
    'acpi_madt_oem_check' (at offset 0xc1002274) and 'enable_apic_mode'
    WARNING: vmlinux - Section mismatch: reference
    to .init.textarse_unisys_oem from .text between 'mps_oem_check' (at
    offset 0xc100220d) and 'acpi_madt_oem_check'
    WARNING: vmlinux - Section mismatch: reference
    to .init.text:es7000_sw_apic from .text between 'enable_apic_mode' (at
    offset 0xc1002284) and 'check_apicid_present'
    WARNING: vmlinux - Section mismatch: reference
    to .init.text:__alloc_bootmem from .text between 'init_gdt' (at offset
    0xc100a8a9) and 'cpu_init'
    WARNING: vmlinux - Section mismatch: reference
    to .init.text:__alloc_bootmem from .text between 'init_gdt' (at offset
    0xc100a8bf) and 'cpu_init'
    WARNING: vmlinux - Section mismatch: reference
    to .init.text:sysenter_setup from .text between 'identify_cpu' (at
    offset 0xc100ad9b) and 'detect_ht'
    WARNING: vmlinux - Section mismatch: reference
    to .init.text:mtrr_bp_init from .text between 'identify_cpu' (at
    offset 0xc100ada5) and 'detect_ht'
    WARNING: vmlinux - Section mismatch: reference to .init.text:
    from .text between 'iret_exc' (at offset 0xc11f990a) and '_etext'
    WARNING: vmlinux - Section mismatch: reference
    to .init.data:initkmem_list3 from .text between 'set_up_list3s' (at
    offset 0xc106d7e1) and 's_start'
    WARNING: vmlinux - Section mismatch: reference
    to .init.text:__alloc_bootmem from .text between 'vgacon_startup' (at
    offset 0xc10f3987) and 'vgacon_scrolldelta'
    WARNING: vmlinux - Section mismatch: reference
    to .init.data:logo_linux_clut224 from .text between 'fb_find_logo' (at
    offset 0xc10fc5a8) and 'backlight_class_release'
    WARNING: vmlinux - Section mismatch: reference to .init.text:
    from .text between 'iret_exc' (at offset 0xc11f9f7e) and '_etext'

    The same warnings are also being reported when I compile my external
    module using the above built kernel.

    Is there any suggestions on how to solve this problem...?

    thanks in advance..
    regards

  2. Re: warning :section mismatch while compiling fedora 2.6.21-1.3194.fc7 kernel

    Nayan wrote:

    > Hi All
    > while compiling linux kernel downloaded from kernel.org i am getting
    > warning as given below
    >
    > WARNING: vmlinux - Section mismatch: reference
    > to .init.text:start_kernel from .text between 'is386' (at offset
    > 0xc1001171) and 'check_x87'
    > [....]
    > to .init.text:__alloc_bootmem from .text between 'vgacon_startup' (at
    > offset 0xc10f3987) and 'vgacon_scrolldelta'
    > WARNING: vmlinux - Section mismatch: reference
    > to .init.data:logo_linux_clut224 from .text between 'fb_find_logo' (at
    > offset 0xc10fc5a8) and 'backlight_class_release'
    > WARNING: vmlinux - Section mismatch: reference to .init.text:
    > from .text between 'iret_exc' (at offset 0xc11f9f7e) and '_etext'
    >
    > The same warnings are also being reported when I compile my external
    > module using the above built kernel.
    >
    > Is there any suggestions on how to solve this problem...?


    Yes. Don't call functions marked with __init or __devinit from inside
    functions not marked with these special keywords.

    jbe

  3. Re: warning :section mismatch while compiling fedora2.6.21-1.3194.fc7 kernel

    On Aug 14, 3:51*am, Juergen Beisert wrote:
    > Nayan wrote:
    > > Hi All
    > > while compiling linux kernel downloaded from kernel.org i am getting
    > > warning as given below

    >
    > > WARNING: vmlinux - Section mismatch: reference
    > > to .init.text:start_kernel from .text between 'is386' (at offset
    > > 0xc1001171) and 'check_x87'
    > > [....]
    > > to .init.text:__alloc_bootmem from .text between 'vgacon_startup' (at
    > > offset 0xc10f3987) and 'vgacon_scrolldelta'
    > > WARNING: vmlinux - Section mismatch: reference
    > > to .init.data:logo_linux_clut224 from .text between 'fb_find_logo' (at
    > > offset 0xc10fc5a8) and 'backlight_class_release'
    > > WARNING: vmlinux - Section mismatch: reference to .init.text:
    > > from .text between 'iret_exc' (at offset 0xc11f9f7e) and '_etext'

    >
    > > The same warnings are also being reported when I compile my external
    > > module using the above built kernel.

    >
    > > Is there any suggestions on how to solve this problem...?

    >
    > Yes. Don't call functions marked with __init or __devinit from inside
    > functions not marked with these special keywords.
    >
    > jbe- Hide quoted text -
    >
    > - Show quoted text -


    Thanks for helping .Anyway to remove this warning at all either while
    compiling the kernel or compiling the external module.

+ Reply to Thread