This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Cannot export etext:symbol not find


Hello all,

Could someone help me?
When I used Gcc to compile programs on cygwin, I encountered some
problems. To simplify the question, I just use a "hello.c" to replace all
programs and I get the same error report. What I did and got is :

1. I used follow command to compile "hello.c" and get a "hello.o", and it
is OK.
-----------------------------------------------------------------------
$ g++-2 -D_SGI_SOURCE -D_LANGUAGE_C_PLUS_PLUS -Wformat -funsigned-char
-D__GNU_BUG_WORKAROUND -D_NOTHREADS -g -c -D_LEGO_CLONER -DBACK_END
-Dlonglong -DSTD_MONGOOSE_LOC='"/usr/lib32/cmplrs"' -DMONGOOSE_BE
-D_LONGLONG -D_SVR4_SOURCE -D_NEW_SYMTAB -D__MIPS_AND_IA64_ELF_H
-fwritable-strings -fPIC -DTARG_ARM -I../include -O0 -D_MIPSEL -D_LONGLONG
-D_MIPS_SZINT=32 -D_MIPS_SZPTR=32 -D_MIPS_SZLONG=32 -MD hello.c -o hello.o
cc1plus:warning:-fPIC ignored for target(all code is position independent)
--------------------------------------------------------------------------

2. I tried to link it but I got some error reports:
Cannot export etext: symbol not foun
collect2: ld returned 1 exit status

like follow:
----------------------------------------------------------------------
g++-2 -D_SGI_SOURCE -D_LANGUAGE_C_PLUS_PLUS -Wformat -funsigned-char
-D__GNU_BUG_WORKAROUND -D_NOTHREADS  -D_LEGO_CLONER -DBACK_END -Dlonglong
-DSTD_MONGOOSE_LOC='"/usr/lib32/cmplrs"' -DMONGOOSE_BE -D_LONGLONG
-D_SVR4_SOURCE -D_NEW_SYMTAB -D__MIPS_AND_IA64_ELF_H -fwritable-strings
-fPIC -DTARG_ARM -I../include  -O0 -D_MIPSEL -D_LONGLONG -D_MIPS_SZINT=32
-D_MIPS_SZPTR=32 -D_MIPS_SZLONG=32 -MD       -elf -shared  -o be.so
hello.o ./osprey1.0/targia32_arm_nodebug/targ_info/libtarginfo.a
./osprey1.0/targia32_arm_nodebug/targ_info/arm.so -o be.so -lm -ldl
Cannot export etext: symbol not foun
collect2: ld returned 1 exit status
-----------------------------------------------------------------------

When I did not include the arm.so then it is fine. When I red the arm.so
I find etext's define in arm.so is empty and I could not find where it is
define and I don't know how to correct it. If there is any way I can just
use the define of system for etext rather than of the programs or I can
avoid the errors with some options? Could anybody give a hint. Thank you
very much.

Ying






------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]