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
Thu Apr 17 08:13:17 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 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
More information about the busybox
mailing list