[uClibc]elf2flt linker error
Bob Cheng
hdrhg at hotmail.com
Fri Aug 2 10:13:39 UTC 2002
Hi Eric:
My original Makefile in gcc-3.1-uclibc-20020711.src.tar.gz look like this:
ARCH:=arm
HAS_MMU:=false
USE_UCLIBC_SNAPSHOT:=false
TARGETS:=gcc_final
TARGET_LANGUAGES:=c,c++
#ifneq ($(HAS_MMU),true)
###TARGETS:=elf2flt
#TARGET_LANGUAGES:=c
#endif
It could compile my c++ code correctly, but the code could not load on
uClinux.
If I enable the 'TARGETS:=elf2flt' line, I will get linker error:
/home/bob/gcc-3.1/toolchain/lib/gcc-lib/arm-linux/3.1/../../../../arm-linux/lib/
libstdc++.a(locale.o):/home/bob/gcc-3.1/build/gcc-3.1/libstdc++-v3/src/locale.cc
:308: the 'setlocale' function supports only C|POSIX locales
/home/bob/gcc-3.1/toolchain/bin/arm-uclibc-ld.real: address 0x42ad80 of
obj_linu
x_arm_r/openisdngw.elf section .text is not within region flatmem
collect2: ld returned 1 exit status
make[1]: *** [obj_linux_arm_r/openisdngw] Error 1
Please advise me how to solve this problem. Thanks!
Sincerely,
Bob Cheng
Project Manager
Product Development Business Unit
Southern Information Systems, Inc.
Tel: 886-3-5784838 Ext. 542
Fax: 886-3-5632623
Mobile: 886-930-830204
_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com
More information about the uClibc
mailing list