
29 Jun
2005
29 Jun
'05
3:29 p.m.
In message 42C291C0.30909@ntlworld.com you wrote:
The compile stage works, this is what I see when I try to link:
ppc_74xx-ld -Bstatic -T /usr/home/wb231-le11/Workspace/u-boot/board/ppmc7xx/u-boot.lds -Ttext -n $UNDEF_SYM cpu/74xx_7xx/start.o \
This part of the LDFLAGS variable definition (which holds the linker options) comes from the config.mk file:
LDFLAGS += -Bstatic -T $(LDSCRIPT) -Ttext $(TEXT_BASE) $(PLATFORM_LDFLAGS)
As you can see, the "-Ttext" argument should be followed by the base address of your text segment, which gets defined in your board's config.mk file; obviously you missed to define TEXT_BASE in your board/<whatever>/config.mk file.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
A star captain's most solemn oath is that he will give his life, even
his entire crew, rather than violate the Prime Directive.
-- Kirk, "The Omega Glory", stardate unknown