* odd link error
@ 2003-07-23 12:48 David Kesselring
2003-07-23 14:26 ` Brian Murphy
2003-07-23 16:52 ` Ralf Baechle
0 siblings, 2 replies; 3+ messages in thread
From: David Kesselring @ 2003-07-23 12:48 UTC (permalink / raw)
To: linux-mips
I know my build for a custom board isn't right but it got through the
compiles only to get this link error. Does anyone know what it might point
to?
mips64el-linux-ld --oformat elf32-tradlittlemips -G 0 -static -T
arch/mips64/ld.script.elf32 -Ttext arch/mips64/kernel/head.o
arch/mips64/kernel/init_task.o init/main.o init/version.o init/do_mounts.o
\
--start-group \
arch/mips64/kernel/kernel.o arch/mips64/mm/mm.o kernel/kernel.o
mm/mm.o fs/fs.o ipc/ipc.o arch/mips/math-emu/fpu_emulator.o
arch/mips/ramdisk/ramdisk.o \
drivers/char/char.o drivers/block/block.o drivers/misc/misc.o
drivers/net/net.o drivers/media/media.o \
net/network.o \
arch/mips64/lib/lib.a
/home/dkesselr/stbsw/linux/linux-64sead/lib/lib.a \
--end-group \
-o vmlinux
mips64el-linux-ld: invalid hex number `arch/mips64/kernel/head.o'
make: *** [vmlinux] Error 1
David Kesselring
Atmel MMC
dkesselr@mmc.atmel.com
919-462-6587
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: odd link error
2003-07-23 12:48 odd link error David Kesselring
@ 2003-07-23 14:26 ` Brian Murphy
2003-07-23 16:52 ` Ralf Baechle
1 sibling, 0 replies; 3+ messages in thread
From: Brian Murphy @ 2003-07-23 14:26 UTC (permalink / raw)
To: David Kesselring; +Cc: linux-mips
David Kesselring wrote:
>I know my build for a custom board isn't right but it got through the
>compiles only to get this link error. Does anyone know what it might point
>to?
>
>mips64el-linux-ld --oformat elf32-tradlittlemips -G 0 -static -T
>arch/mips64/ld.script.elf32 -Ttext arch/mips64/kernel/head.o
>arch/mips64/kernel/init_task.o init/main.o init/version.o init/do_mounts.o
>\
> --start-group \
> arch/mips64/kernel/kernel.o arch/mips64/mm/mm.o kernel/kernel.o
>mm/mm.o fs/fs.o ipc/ipc.o arch/mips/math-emu/fpu_emulator.o
>arch/mips/ramdisk/ramdisk.o \
> drivers/char/char.o drivers/block/block.o drivers/misc/misc.o
>drivers/net/net.o drivers/media/media.o \
> net/network.o \
> arch/mips64/lib/lib.a
>/home/dkesselr/stbsw/linux/linux-64sead/lib/lib.a \
> --end-group \
> -o vmlinux
>mips64el-linux-ld: invalid hex number `arch/mips64/kernel/head.o'
>make: *** [vmlinux] Error 1
>
>
>
-Ttext expects an argument, the hex number mentioned, and it is for some
reason missing.
Since
arch/mips64/kernel/head.o
is not a valid hex number the build fails. You probably have some make
variable which is not
defined which should be. You should look at the makefile which contains
the linker line
and find -Ttext $(MISSING_VARIABLE) and find out why MISSING_VARIABLE is
not set.
/Brian
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: odd link error
2003-07-23 12:48 odd link error David Kesselring
2003-07-23 14:26 ` Brian Murphy
@ 2003-07-23 16:52 ` Ralf Baechle
1 sibling, 0 replies; 3+ messages in thread
From: Ralf Baechle @ 2003-07-23 16:52 UTC (permalink / raw)
To: David Kesselring; +Cc: linux-mips
On Wed, Jul 23, 2003 at 08:48:03AM -0400, David Kesselring wrote:
> I know my build for a custom board isn't right but it got through the
> compiles only to get this link error. Does anyone know what it might point
> to?
Seems the SEAD bits in your Makefile are incomplete, arch/mips64/Makefile
should contain this:
[...]
#
# MIPS SEAD board
#
ifdef CONFIG_MIPS_SEAD
LIBS += arch/mips/mips-boards/sead/sead.o \
arch/mips/mips-boards/generic/mipsboards.o
SUBDIRS += arch/mips/mips-boards/generic arch/mips/mips-boards/sead
LOADADDR := 0x80100000
endif
[...]
Ralf
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-07-23 16:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-07-23 12:48 odd link error David Kesselring
2003-07-23 14:26 ` Brian Murphy
2003-07-23 16:52 ` Ralf Baechle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox