[U-Boot-Users] -mrelocatable

Woodruff, Richard r-woodruff2 at ti.com
Wed May 19 19:46:52 CEST 2004

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.


Richard W.

arm-linux-ld -Bstatic -T
.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
uncs.asm:642: relocation truncated to fit: R_ARM_PLT32 __div0
uncs.asm:762: relocation truncated to fit: R_ARM_PLT32 __div0
uncs.asm:683: relocation truncated to fit: R_ARM_PLT32 __div0
ncs.asm:822: relocation truncated to fit: R_ARM_PLT32 __div0
make: *** [u-boot] Error 1

> -----Original Message-----
> From: wd at denx.de [mailto:wd at denx.de]
> Sent: Wednesday, May 19, 2004 12:41 PM
> To: Woodruff, Richard
> Cc: Jeff Tucker; u-boot-users at lists.sourceforge.net
> Subject: Re: [U-Boot-Users] -mrelocatable
> In message
<71555548814716479478431542AA5F8ADF8B52 at dlee2k04.ent.ti.com>
> you wrote:
> > Perhaps I read the fragment wrong.  We needed to apply this patch as
> 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
> > a version of GCC3.4 (depending on the relocation address it would
> > 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
> > 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 at denx.de
> Human beings were created by water to transport it uphill.

More information about the U-Boot mailing list