On Mon, Jun 8, 2009 at 8:02 AM, Thomas Chou<[email protected]> wrote:
> The old nios2nommu toolchain cannot handle gc_section, and got error like
> this,
>
> nios2-linux-uclibc/bin/ld.real: --gc-sections and -r may not be used
> together
> collect2: ld returned 1 exit status
> make[5]: *** [busybox_unstripped] Error 1
>
> Do you think if it is OK to add a config to disable the gc_section in the
> trylink script? If it is OK, could you help us add one?
Yes. If you add it, new CONFIG_xxx can be checked here in scripts/trylink:
GC_SECTIONS=`(
. ./.config
if test x"$CONFIG_STATIC" = x"y"; then
check_libc_is_glibc "" "-Wl,--gc-sections"
else
echo "-Wl,--gc-sections"
fi
)`
--
vda
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox