Flawed uClibc static library build

Evan Kroske e.kroske at gmail.com
Mon Jul 5 19:32:44 UTC 2010


I've run into a problem compiling GCC against uClibc. No matter which
version of GCC I attempt to compile, I receive this error:

/build/toolchain/gcc-4.3/build/./gcc/xgcc [lots of options removed]
/usr/arm-ip-linux-uclibceabi/lib/libc.a(__uClibc_main.os): In function
`__uClibc_fini':
__uClibc_main.c:(.text+0x6c): undefined reference to `__fini_array_start'
__uClibc_main.c:(.text+0x74): undefined reference to `__fini_array_end'
/usr/arm-ip-linux-uclibceabi/lib/libc.a(__uClibc_main.os): In function
`__uClibc_main':
__uClibc_main.c:(.text+0x3a4): undefined reference to `__preinit_array_start'
__uClibc_main.c:(.text+0x3a8): undefined reference to `__preinit_array_end'
__uClibc_main.c:(.text+0x3b0): undefined reference to `__init_array_start'
__uClibc_main.c:(.text+0x3b4): undefined reference to `__init_array_end'
/usr/arm-ip-linux-uclibceabi/bin/ld: ./libgcc_s.so.1.tmp: hidden
symbol `__fini_array_end' isn't defined
/usr/arm-ip-linux-uclibceabi/bin/ld: final link failed:
Nonrepresentable section on output

I investigated my libc.a static library file with `nm` (output:
http://users.openinkpot.org/~evankroske/uclibc-symbols), and confirmed
the problem. Here's my config file:
http://git.iplinux.org/uclibc.git/tree/debian/arm.config. Any ideas of
what caused this? Thanks.

-- 
Evan Kroske
http://welcome2obscurity.blogspot.com/
The personal blog of Evan Kroske,
novice software developer.


More information about the uClibc mailing list