
I meant to be talking about the -Ttext option. If set to 0 or below some threshold it generates the wrong code. Above it gives the following compile errors.
Regards,
Richard W.
------------------------ arm-linux-ld -Bstatic -T /home/a0384864/wtbu/loader/u_1_1_0/u-boot-1.1.0/board/omap1510inn/u-boot .lds -Ttext 0x11080000 $UNDEF_SYM cpu/arm925t/start.o \ --start-group lib_generic/libgeneric.a board/omap1510inn/libomap1510inn.a cpu/arm925t/libarm925t.a lib_arm/libarm.a fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a fs/reiserfs/libreiserfs.a net/libnet.a disk/libdisk.a rtc/librtc.a dtt/libdtt.a drivers/libdrivers.a drivers/sk98lin/libsk98lin.a post/libpost.a post/cpu/libcpu.a common/libcommon.a --no-warn-mismatch -L /home/a0384864/wtbu/tools/3_4_0/bin/../lib/gcc/arm-linux/3.4.0 -lgcc --end-group \ -Map u-boot.map -o u-boot /home/a0384864/wtbu/tools/3_4_0/bin/../lib/gcc/arm-linux/3.4.0/libgcc.a( _udivsi3.oS)(.text+0xec):/work/GNU/CodeSourcery/gcc/gcc/config/arm/lib1f uncs.asm:642: relocation truncated to fit: R_ARM_PLT32 __div0 /home/a0384864/wtbu/tools/3_4_0/bin/../lib/gcc/arm-linux/3.4.0/libgcc.a( _divsi3.oS)(.text+0x11c):/work/GNU/CodeSourcery/gcc/gcc/config/arm/lib1f uncs.asm:762: relocation truncated to fit: R_ARM_PLT32 __div0 /home/a0384864/wtbu/tools/3_4_0/bin/../lib/gcc/arm-linux/3.4.0/libgcc.a( _umodsi3.oS)(.text+0xc0):/work/GNU/CodeSourcery/gcc/gcc/config/arm/lib1f uncs.asm:683: relocation truncated to fit: R_ARM_PLT32 __div0 /home/a0384864/wtbu/tools/3_4_0/bin/../lib/gcc/arm-linux/3.4.0/libgcc.a( _modsi3.oS)(.text+0xd8):/work/GNU/CodeSourcery/gcc/gcc/config/arm/lib1fu ncs.asm:822: relocation truncated to fit: R_ARM_PLT32 __div0 make: *** [u-boot] Error 1
-----Original Message----- From: wd@denx.de [mailto:wd@denx.de] Sent: Wednesday, May 19, 2004 12:41 PM To: Woodruff, Richard Cc: Jeff Tucker; u-boot-users@lists.sourceforge.net Subject: Re: [U-Boot-Users] -mrelocatable
In message
71555548814716479478431542AA5F8ADF8B52@dlee2k04.ent.ti.com
you wrote:
Perhaps I read the fragment wrong. We needed to apply this patch as
the
Maybe you should include a little bit of introduction what you are talking about.
relocate option generated bad code or code which would not compile
using
a version of GCC3.4 (depending on the relocation address it would
fail
to compile or compile and generate bad code).
What do you mean with "relocation address"?
In general I think there are also changes which were made to the
u-boot
source structure to allow them to compile properly with newer GCC's.
The changes made was to replace "-mrelocatable" with "-fPIC".
Best regards,
Wolfgang Denk
-- Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd@denx.de Human beings were created by water to transport it uphill.