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 _______________________________________________ busybox mailing list [email protected] http://busybox.net/cgi-bin/mailman/listinfo/busybox
