[ECOS]undefined reference to `__init_array_end__ when linking with eCOS

Gary Thomas gary@mlbassoc.com
Wed Jan 21 08:16:00 GMT 2009


Robert Brusa wrote:
> On Tue, 20 Jan 2009 19:31:56 +0100, Jonathan Larmour 
> <jifl@ecoscentric.com> wrote:
> 
>> 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
> Yes, I checked it out as recently as 12-Jan-09 using the command:
> cvs -z3 -d :pserver:anoncvs@ecos.sourceware.org:/cvs/ecos co -P ecos
> 
> Let me add, that previously I used the old version of eCOS (2.x) - and 
> the toolchain that comes with it. My app compiled, linked and worked. 
> But now I want to expand it and I thought it would make sense to update 
> things a bit. But hellas!!! - see above.

Are you building *all* the objects with the same (new, arm-eabi) tools?

You should be able to figure which file is generating this section
using "arm-eabi-objdump --section-headers"  This may help isolate the
issue.

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------

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



More information about the Ecos-discuss mailing list