AW: AW: AW: AW: AW: AW: segfaults with ver 1.10.0 on sh3 based board

Denys Vlasenko vda.linux at googlemail.com
Thu Apr 3 23:32:52 UTC 2008


On Thursday 03 April 2008 11:31, EXTERNAL Tetz Torsten (Praktikant; ST-FIR/ENG1) wrote:
> Hello Denys,
> 
> > That's not good. Which version of ld is that?
> > 
> > Run "ld -v"... ohh, I mean,
> > 
> >
> /opt/crosstool/gcc-4.1.2-glibc-2.3.6/sh3-unknown-linux-gnu/lib/gcc/sh3-u
> nknown-linux-gnu/4.1.2/../../../../sh3-unknown-linux-gnu/bin/ld
> > -v 
> 
> Version of ld is: "GNU ld version 2.16.1"

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=""

Note: not using --gc-sections will make bbox ~6 kb bigger.
--
vda



More information about the busybox mailing list