This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


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

Re: undefined reference to `__init_array_end__ when linking with eCOS


Robert Brusa wrote:
> Hi
> Using the new binaries of the gnu-toolchain for linux for the AT91SAM7x
> target (arm-2008q3-66-arm-none-eabi.bin from Codesourcery) I configured
> eCOS using configtool-081009 downloaded from Ecoscentric then generated
> the library. No problem.
> 
> Next is that I compile (again no problem), then link my app - and that's
> were the problems come in. I get the the following error message:
> 
> Building target: ifw
> Invoking: GCC C Linker
> arm-none-eabi-gcc -nostartfiles -L/home/rwb/icfg5/default_install/lib
> -Ttarget.ld -Wl,--gc-sections -Wl,-static -g -nostdlib -Xlinker -Map
> -Xlinker ifw.map -o"ifw"  ./Alignment.o ./EEProm.o ./Log.o ./RPC.o
> ./heizer.o ./ictrl.o ./ihw.o ./link.o ./motoren.o ./myastro.o ./novas1.o
> ./novascon.o ./rtc.o ./solsys3.o ./sun.o ./trackdefs.o ./util.o
> /home/rwb/CodeSourcery/Sourcery_G++_Lite/bin/../lib/gcc/arm-none-eabi/4.3.2/../../../../arm-none-eabi/bin/ld:
> error: no memory region specified for loadable section `.ARM.exidx'
> collect2: ld returned 1 exit status
> make: *** [ifw] Fehler 1

Are you using eCos CVS from 2008-11-11 or later? If not, you should.

Jifl
-- 
eCosCentric Limited      http://www.eCosCentric.com/     The eCos experts
Barnwell House, Barnwell Drive, Cambridge, UK.       Tel: +44 1223 245571
Registered in England and Wales: Reg No 4422071.
------["Si fractum non sit, noli id reficere"]------       Opinions==mine

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


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