AW: AW: AW: AW: AW: AW: AW: segfaults with ver 1.10.0 on sh3 based board
EXTERNAL Tetz Torsten (Praktikant; ST-FIR/ENG1)
external.Torsten.Tetz at de.bosch.com
Fri Apr 4 02:04:05 PDT 2008
Hello Denys,
>> 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.
I tried to build version 1.10.0 with a replaced GC_SECTION=...
and got a working binary.
The size of my binary with some buildin applets increased
by 11,9 kb from 294,8kb to 306,7kb. Right now that would be
no problem with my board but I still want to test the official
code with a newer LD.
I will need some time now to prepare and test a new cross compiler
toolchain for my board with a newer LD version.
Thanks for your help.
I will post again when I know how bbox builds with a newer LD version.
Regards,
Torsten
More information about the busybox
mailing list