This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Compiling kernel 2.4.17 fails at link stage


Hi,

I am trying to compile kernel 2.4.17 (with davidm's patches
linux-2.4.17-ia64-011226) using gcc-3.0.3 and binutils 2.11.92.0.12.3
20011121. I get the following error at final kernel link stage:

gcc -E -D__ASSEMBLY__ -C -P -I/u/kitty/tools/linux-2.4.17/include -I/u/kitty/tools/linux-2.4.17/include/asm-ia64 \
-traditional arch/ia64/vmlinux.lds.S > arch/ia64/vmlinux.lds
ld -static -T arch/ia64/vmlinux.lds arch/ia64/kernel/head.o arch/ia64/kernel/init_task.o init/main.o init/version.o \
        --start-group \
        arch/ia64/kernel/kernel.o arch/ia64/mm/mm.o arch/ia64/ia32/ia32.o arch/ia64/dig/dig.a kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o \
         drivers/acpi/acpi.o drivers/char/char.o drivers/block/block.o drivers/misc/misc.o drivers/net/net.o drivers/media/media.o drivers/char/drm-4.0/drm.o drivers/ide/idedriver.o drivers/cdrom/driver.o drivers/pci/driver.o drivers/video/video.o \
        net/network.o \
        /u/kitty/tools/linux-2.4.17/arch/ia64/lib/lib.a /u/kitty/tools/linux-2.4.17/lib/lib.a /u/kitty/tools/linux-2.4.17/arch/ia64/lib/lib.a \
        --end-group \
        -o vmlinux
arch/ia64/kernel/kernel.o(.IA_64.unwind.text.exit+0x0): undefined reference to `local symbols in discarded section .text.exit'
arch/ia64/kernel/kernel.o(.IA_64.unwind.text.exit+0x8): undefined reference to `local symbols in discarded section .text.exit'
arch/ia64/kernel/kernel.o(.IA_64.unwind.text.exit+0x18): undefined reference to `local symbols in discarded section .text.exit'
arch/ia64/kernel/kernel.o(.IA_64.unwind.text.exit+0x20): undefined reference to `local symbols in discarded section .text.exit'
arch/ia64/kernel/kernel.o(.IA_64.unwind.text.exit+0x30): undefined reference to `local symbols in discarded section .text.exit'
arch/ia64/kernel/kernel.o(.IA_64.unwind.text.exit+0x38): more undefined references to `local symbols in discarded section .text.exit' follow
arch/ia64/kernel/kernel.o(.IA_64.unwind.text.exit+0x0): unsupported reloc
arch/ia64/kernel/kernel.o(.IA_64.unwind.text.exit+0x8): unsupported reloc
arch/ia64/kernel/kernel.o(.IA_64.unwind.text.exit+0x18): unsupported reloc
arch/ia64/kernel/kernel.o(.IA_64.unwind.text.exit+0x20): unsupported reloc
arch/ia64/kernel/kernel.o(.IA_64.unwind.text.exit+0x30): unsupported reloc
arch/ia64/kernel/kernel.o(.IA_64.unwind.text.exit+0x38): unsupported reloc
make: *** [vmlinux] Error 1

I don't see a newer version of binutils than the one I have. The patch for
discarded sections seems to be already in the ia64 kernel patches (I
checked the patch for alpha in the binutils release information and the
same seems to be in the corresponding ia64 file).

Here's more info. Any ideas to fix this is appreciated.

toutatis> uname -a
Linux toutatis 2.4.16 #1 SMP Thu Dec 6 21:57:22 CST 2001 ia64 unknown

toutatis> ld -V
GNU ld version 2.11.92.0.12.3 20011121
  Supported emulations:
   elf64_ia64

toutatis> gcc -v
Reading specs from /usr/local/lib/gcc-lib/ia64-redhat-linux/3.0.3/specs
Configured with: ../configure --host=ia64-redhat-linux --enable-threads
Thread model: posix
gcc version 3.0.3

-kitty.

-- 
Krishnakumar B <kitty at cs dot wustl dot edu>
Distributed Object Computing Laboratory, Washington University in St.Louis


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]