Undefined references.

James M. Cassidy (jcassidy@micro.ee.usm.maine.edu)
Thu, 6 Jun 96 16:11:25 EDT


I'm trying to compile linux 1.2.13 with gcc 2.7.0 and everything compiles
fine until the linking stage where I get a whole bunch of undefined references.

Here as an example of the linking stage:

ld -qmagic -Ttext 0xfffe0 arch/i386/kernel/head.o init/main.o init/version.o \
arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o mm/mm.o fs/fs.o net/net.o ipc/ipc.o \
fs/filesystems.a \
drivers/block/block.a drivers/char/char.a drivers/net/net.a arch/i386/math-emu/math.a \
/usr/src/linux/lib/lib.a -o vmlinux
ld: warning: cannot find entry symbol _start; defaulting to 000fffe0
arch/i386/kernel/head.o(.text+0x18): undefined reference to `__edata'
arch/i386/kernel/head.o(.text+0x1d): undefined reference to `__end'
arch/i386/kernel/head.o(.text+0x7f): undefined reference to `_x86'
arch/i386/kernel/head.o(.text+0xa3): undefined reference to `_x86'
arch/i386/kernel/head.o(.text+0xcf): undefined reference to `_x86'
arch/i386/kernel/head.o(.text+0xdb): undefined reference to `_x86_model'
arch/i386/kernel/head.o(.text+0xe4): undefined reference to `_x86_mask'
arch/i386/kernel/head.o(.text+0xea): undefined reference to `_x86_capability'
arch/i386/kernel/head.o(.text+0xf4): undefined reference to `_x86_vendor_id'
arch/i386/kernel/head.o(.text+0xfa): undefined reference to `_x86_vendor_id'
arch/i386/kernel/head.o(.text+0x100): undefined reference to `_x86_vendor_id'
arch/i386/kernel/head.o(.text+0x171): undefined reference to `_start_kernel'
arch/i386/kernel/head.o(.text+0x179): undefined reference to `_hard_math'
arch/i386/kernel/head.o(.text+0x194): undefined reference to `_hard_math'
arch/i386/kernel/head.o(.text+0xc000): undefined reference to `_init_user_stack'-

Then goes on to give some more undefined references in:
arch/i386/kernel/kernel.o
arch/i386/mm/mm.o
fs/fs.o
floppy.o

Could anyone suggest what I might have configured wrong to cause lal these
undefined references?

P.S.: Please leave the subject line with the Re: so I can spot it easier
in my huge mail box.

- Thanks
- Jim