RE: [U-Boot-Users] -mrelocatable

Wolfgang,
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.
/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).
I was not aware of this. I will give it a try. Thanks.
Regards,
Richard W.
participants (1)
-
Woodruff, Richard