fails to link [Re: svn commit: trunk/uClibc: libc libc/sysdeps/linux/alpha/bits libc etc...]

Bernhard Fischer rep.dot.nop at gmail.com
Thu Jan 17 21:01:48 UTC 2008


On Thu, Jan 17, 2008 at 11:11:20AM -0800, bernds at uclibc.org wrote:
>Author: bernds
>Date: 2008-01-17 11:11:18 -0800 (Thu, 17 Jan 2008)
>New Revision: 20863
>
>Log:
>A patch from our Blackfin repository, originally from Jie Zhang.  This fixes
>a problem where the linker was trying to use the wrong symbol name for the
>init function.
>
>Define SYMBOL_PREFIX as _ in Rules.mak for h8300, bfin, i960,
>microblaze, and v850. Add -D__UCLIBC_UNDERSCORES__ in CFLAGS for targets
>which define SYMBOL_PREFIX as _. Remove defines and undefs from
>uClibc_arch_features.h of each target.
>Add $(SYMBOL_PREFIX) to __uClibc_init when passed by ld option -init.

>Modified: trunk/uClibc/libc/Makefile.in
>===================================================================
>--- trunk/uClibc/libc/Makefile.in	2008-01-17 12:42:53 UTC (rev 20862)
>+++ trunk/uClibc/libc/Makefile.in	2008-01-17 19:11:18 UTC (rev 20863)
>@@ -15,7 +15,7 @@
> VERSION_SCRIPT := -Wl,--version-script,$(VERSION_SCRIPT)
> endif
> 
>-LDFLAGS-libc.so := $(LDFLAGS) $(VERSION_SCRIPT) -Wl,-init,__uClibc_init
>+LDFLAGS-libc.so := $(LDFLAGS) $(VERSION_SCRIPT) -init $(SYMBOL_PREFIX)__uClibc_init

Bernd, attention:
We use the compiler-driver and not ld. I've fixed this as r20867.

thanks,



More information about the uClibc mailing list