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 was finally able to get a working toolchain for my target with the
linker version "GNU ld (GNU Binutils) 2.18".
With this new toolchain the above replacement is no longer necessary and
the 
segfaults no longer occur.

Thanks for all,
Torsten
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to