AW: AW: AW: AW: AW: AW: AW: segfaults with ver 1.10.0 on sh3 basedboard

EXTERNAL Tetz Torsten (Praktikant; ST-FIR/ENG1) external.Torsten.Tetz at de.bosch.com
Tue Apr 15 15:25:32 UTC 2008


Hello,

EXTERNAL Tetz Torsten (Praktikant;ST-FIR/ENG1) wrote:
>> This can be a problem. Either upgrade your ld to newest version,
>> or go to scripts/trylink and replace GC_SECTION=... here:
>> 
>> # Static linking against glibc produces buggy executables
>> # (glibc does not cope well with ld --gc-sections).
>> # See sources.redhat.com/bugzilla/show_bug.cgi?id=3400
>> # Note that glibc is unsuitable for static linking anyway.
>> # We are removing -Wl,--gc-sections from link command line.
>> GC_SECTION=`( . ./.config
>> if test x"$CONFIG_STATIC" = x"y"; then
>>     check_libc_is_glibc "" "-Wl,--gc-sections"
>> else
>>     echo "-Wl,--gc-sections"
>> fi
>> )`
>> 
>> by just
>> 
>> GC_SECTION=""
>> 
> I tried to build version 1.10.0 with a replaced GC_SECTION=...
> and got a working binary.
> Thanks for your help.
> I will post again when I know how bbox builds with a newer LD version.

I have tried but was unable to build a toolchain for my sh3 target with
a newer version of binutils because of different build errors.
I am no longer working on this project so I have no time left for fixing
these problems. 
When someone else is continuing my work here he will have to use linker
version 2.16.1 and the above descriped workaround.

Thanks,
Torsten



More information about the busybox mailing list