[U-Boot-Users] -mrelocatable

Woodruff, Richard r-woodruff2 at ti.com
Wed May 19 22:13:17 CEST 2004


> a request: Can you please use standard quoting  rules?  It  makes  no
> sense  at  all to include the whole previous message at the bottom of
> your posting.

Ok.  I'm required to use a Windows tools which I haven't taken the time
to fully configure.  It seems that every now and them I set it up close
to correct, and it will revert back.

> > 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.
> I can't parse that. How can you set a text address "below" 0 ???

I did not state it correctly.  Code compiles but bad code is generated
when the text is configured below a certain address.  When the code goes
above that address, it doesn't compile and gives the below error.

> >
> >
> > 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
> I've been told that using -fpic instead of -fPIC will fix this,  too,
> but  I had no time yet to either verify this myself, nor to check for
> consequences on other systems (like PPC).

I was not aware of this.  I will give it a try. Thanks.


Richard W.

More information about the U-Boot mailing list