Re: [arm-gnu] linking fails
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [arm-gnu] linking fails



> Hi
> I installed the most recent arm-none-eabi-toolchain of CS (arm-2009q1-161-arm-none-eabi.bin). Using these tools, I generated an eCos library from my eCos > repository. Then I tried to build a simple "hello-world"-type of a program that uses this library and got the following linking error:

>

> Building target: serial_2

> Invoking: GCC C Linker
> arm-none-eabi-gcc -nostartfiles -L"/home/rwb/icb4/ilw_4_install/lib" -T../target.ld -mno-thumb-interwork -mcpu=arm7tdmi -Wl,--gc-sections -Wl,-static -g -nostdlib -Xlinker -Map -Xlinker serial_2.Map -o"serial_2" ./serial_2.o

> collect2: ld terminated with signal 11 [Segmentation fault]

> make: *** [serial_2] Fehler 1

>

> How can I fix this? Thanks and regards - Robert

I am seeing the same error message when I tried to link with the linker from arm-none-linux-gnueabi-gcc (Sourcery G++ Lite 2009q1-203) 4.3.3, and I had a following line in my linker command file:

SECTIONS {    foo : {*(foo)}   }

where the section 'foo' doesn't exist in any of the object files. This used to work in arm-none-linux-gnueabi-gcc (Sourcery G++ Lite 2008q3-72) 4.3.2.

Sasha Slijepcevic
TI