From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0rc2) Gecko/20020510 Description of problem: Using kernel-source-2.4.18-4, kallsyms pass 1 fails. Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. basic kernel compile, .config included as attachment 2 [details]. 3. Actual Results: d -m elf_i386 -T /usr/local/src/linux-2.4.18-4/arch/i386/vmlinux.lds -e stext arch/i386/kernel/head.o arch/i386/kernel/init_task.o init/main.o init/version.o init/do_mounts.o --start-group arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o drivers/char/char.o drivers/block/block.o drivers/misc/misc.o drivers/net/net.o drivers/media/media.o drivers/ide/idedriver.o drivers/scsi/scsidrv.o drivers/cdrom/driver.o drivers/pci/driver.o drivers/video/video.o net/network.o abi/abi.o /usr/local/src/linux-2.4.18-4/arch/i386/lib/lib.a /usr/local/src/linux-2.4.18-4/lib/lib.a /usr/local/src/linux-2.4.18-4/arch/i386/lib/lib.a --end-group -o .tmp_vmlinux1 drivers/char/char.o(.data+0x6954): undefined reference to `local symbols in discarded section .text.exit' make[1]: *** [kallsyms] Error 1 make[1]: Leaving directory `/usr/local/src/linux-2.4.18-4' Additional info: I'm trying to compile a no-module no-frills kernel for use as a dns/sendmail box. The -3 kernel compiled fine, but I'm trying to use -4 for the ext3 errata. This is from a clean, no changes kernel-source rpm, copied from /usr/src to /usr/local/src. I'm running menuconfig, make dep, make bzImage.
Created attachment 58126 [details] kernel config used
Found problem. I was pointed to the whole binutils thing by a helpful soul in #kernelnewbies, and used Keith Owens' script to find the offending object in char.o. Script from http://marc.theaimsgroup.com/?l=linux-kernel&m=101485067401944&w=2 It was in wdt_pci.o, and for some reason the watchdog stuff wasn't showing up in menuconfig. I had to pull it out of my .config manually. Aparantly it was set to Y by the redhat config in configs/
Nice debugging! Fixed for the next build.Thanks