
Dear Richard,
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.
In message 71555548814716479478431542AA5F8AEC85D1@dlee2k04.ent.ti.com you wrote:
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 ???
/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
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).
Best regards,
Wolfgang Denk