Bug 10316 - Section missmatches at compiling
Summary: Section missmatches at compiling
Status: RESOLVED CODE_FIX
Alias: None
Product: Platform Specific/Hardware
Classification: Unclassified
Component: x86-64 (show other bugs)
Hardware: All Linux
: P1 high
Assignee: other_other
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-24 06:28 UTC by Patrick Matthäi
Modified: 2008-07-13 14:30 UTC (History)
1 user (show)

See Also:
Kernel Version: 2.6.25.1
Subsystem:
Regression: Yes
Bisected commit-id:


Attachments
My Kernel config (43.76 KB, application/octet-stream)
2008-03-24 06:29 UTC, Patrick Matthäi
Details
Compile log. (85.95 KB, application/octet-stream)
2008-03-24 06:39 UTC, Patrick Matthäi
Details

Description Patrick Matthäi 2008-03-24 06:28:15 UTC
Latest working kernel version: 2.6.24.3
Earliest failing kernel version: 2.6.25-rc6-git7
Distribution: Debian Sid
Hardware Environment: x86
Software Environment: GCC 4.3
Problem Description:

Hello,

I get at the latest snapshot many warnings about section missmatches, like:

WARNING: drivers/base/built-in.o(.data+0x438): Section mismatch in reference from the variable topology_cpu_callback_nb.11018 to the function .cpuinit.text:topology_cpu_callback()
The variable topology_cpu_callback_nb.11018 references
the function __cpuinit topology_cpu_callback()
If the reference is valid then annotate the
variable with __init* (see linux/init.h) or name the variable:
*driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console,

I'll add my complete kernel configuration and an log of the whole build process.

Thanks.
Comment 1 Patrick Matthäi 2008-03-24 06:29:04 UTC
Created attachment 15412 [details]
My Kernel config
Comment 2 Patrick Matthäi 2008-03-24 06:39:31 UTC
Created attachment 15413 [details]
Compile log.
Comment 3 Patrick Matthäi 2008-03-28 05:41:18 UTC
It still exists in 2.6.25-rc7-git3.
Comment 4 Patrick Matthäi 2008-04-10 08:14:13 UTC
Still in 2.6.25-rc8-git8:

  AS      arch/x86/lib/checksum_32.o
  CC      arch/x86/lib/delay_32.o
  AS      arch/x86/lib/getuser_32.o
  CC      arch/x86/lib/memcpy_32.o
  AS      arch/x86/lib/putuser_32.o
  AS      arch/x86/lib/semaphore_32.o
  CC      arch/x86/lib/string_32.o
  CC      arch/x86/lib/strstr_32.o
  CC      arch/x86/lib/usercopy_32.o
  AR      arch/x86/lib/lib.a
  LD      vmlinux.o
  MODPOST vmlinux.o
WARNING: modpost: Found 14 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
  GEN     .version
  CHK     include/linux/compile.h
  UPD     include/linux/compile.h
  CC      init/version.o
  LD      init/built-in.o
  LD      .tmp_vmlinux1
  KSYM    .tmp_kallsyms1.S
  AS      .tmp_kallsyms1.o
  LD      .tmp_vmlinux2
  KSYM    .tmp_kallsyms2.S
  AS      .tmp_kallsyms2.o
  LD      vmlinux
  SYSMAP  System.map

...

  LD      arch/x86/boot/setup.elf
  OBJCOPY arch/x86/boot/setup.bin
  AS      arch/x86/boot/compressed/head_32.o
  CC      arch/x86/boot/compressed/misc.o
  OBJCOPY arch/x86/boot/compressed/vmlinux.bin
  GZIP    arch/x86/boot/compressed/vmlinux.bin.gz
  LD      arch/x86/boot/compressed/piggy.o
  LD      arch/x86/boot/compressed/vmlinux
  OBJCOPY arch/x86/boot/vmlinux.bin
  HOSTCC  arch/x86/boot/tools/build
  BUILD   arch/x86/boot/bzImage
Root device is (8, 4)
Setup is 11404 bytes (padded to 11776 bytes).
System is 1104 kB
Kernel: arch/x86/boot/bzImage is ready  (#1)
  Building modules, stage 2.
  MODPOST 250 modules
WARNING: modpost: Found 1 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
  CC      arch/x86/crypto/aes-i586.mod.o
  LD [M]  arch/x86/crypto/aes-i586.ko
  CC      arch/x86/kernel/apm.mod.o
  LD [M]  arch/x86/kernel/apm.ko
  CC      arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.mod.o
  LD [M]  arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.ko
  CC      arch/x86/kernel/cpu/cpufreq/powernow-k8.mod.o
  LD [M]  arch/x86/kernel/cpu/cpufreq/powernow-k8.ko
  CC      crypto/aes_generic.mod.o
  LD [M]  crypto/aes_generic.ko
  CC      crypto/arc4.mod.o
  LD [M]  crypto/arc4.ko
  CC      crypto/cbc.mod.o
Comment 5 Patrick Matthäi 2008-04-13 23:14:43 UTC
Also with 2.6.25-rc9.
Comment 6 Patrick Matthäi 2008-05-02 00:53:49 UTC
Still with 2.6.25.1.
Comment 7 Patrick Matthäi 2008-07-13 14:30:15 UTC
Seems to be fixed with 2.6.26.

Note You need to log in before you can comment on or make changes to this bug.