[Buildroot] bash-3.1 link error "undefined reference to `__fini_array_start'"

renxuefeng renxf_maillist at 126.com
Mon Oct 30 14:16:33 UTC 2006


i was build bash with buildroot.
my target platform was arm720t, uclibc.
when i compiling the bash-3.1 without -Wl,-elf2flt ,there was no error.
but when i added the ldflags -Wl,-elf2flt , some link error showed as
follows.

bash.elf2flt: In function `__uClibc_fini':
/home/renxf/uclinux/cross_tool/buildroot/toolchain_build_arm_nofpu/gcc-3.4.3/gcc/config/arm/lib1funcs.asm:(.text+0x876f8):
undefined reference to `__fini_array_start'
/home/renxf/uclinux/cross_tool/buildroot/toolchain_build_arm_nofpu/gcc-3.4.3/gcc/config/arm/lib1funcs.asm:(.text+0x876fc):
undefined reference to `__fini_array_end'
bash.elf2flt: In function `__uClibc_main':
/home/renxf/uclinux/cross_tool/buildroot/toolchain_build_arm_nofpu/gcc-3.4.3/gcc/config/arm/lib1funcs.asm:(.text+0x8788c):
undefined reference to `__preinit_array_end'
/home/renxf/uclinux/cross_tool/buildroot/toolchain_build_arm_nofpu/gcc-3.4.3/gcc/config/arm/lib1funcs.asm:(.text+0x87890):
undefined reference to `__preinit_array_start'
/home/renxf/uclinux/cross_tool/buildroot/toolchain_build_arm_nofpu/gcc-3.4.3/gcc/config/arm/lib1funcs.asm:(.text+0x8789c):
undefined reference to `__init_array_end'
/home/renxf/uclinux/cross_tool/buildroot/toolchain_build_arm_nofpu/gcc-3.4.3/gcc/config/arm/lib1funcs.asm:(.text+0x878a0):
undefined reference to `__init_array_start'
collect2: ld returned 1 exit status
make[1]: *** [bash] Error 1

anyone can help me?





More information about the buildroot mailing list