gcc linker crash

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

gcc linker crash

1,398 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by bmentink on Tue Aug 17 21:25:02 MST 2010
Hi All,

I am using lpcxpresso to compile a project, every module compiles without error or warnings, but when it is time to link, the linker crashes ..

I have no idea what the error code means, does anyone know how to get more information out of the linker to see what it is complaining about?

Thanks,


Quote:
make all
C:/nxp/lpcxpresso_3.4/Tools/bin/arm-none-eabi-gcc -Tlpc1765.ld -mcpu=cortex-m3 -mthumb -nostdlib -Xlinker -Map=dbg/dpp-qk.map --gc-sections -LC:/QP/ports/arm-cortex/qk/gnu/dbg -o dbg/dpp-qk.elf dbg/startup_LPC17.o dbg/bsp.o dbg/main.o dbg/no_heap.o dbg/philo.o dbg/table.o dbg/core_cm3.o dbg/system_LPC17xx.o -lqk_cortex-m3 -lqf_cortex-m3 -lqep_cortex-m3
collect2: ld returned 5 exit status

Original Attachment has been moved to: 1100608_LPC1769makeproblem.zip

0 项奖励
回复
3 回复数

1,317 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by bmentink on Wed Aug 18 14:09:33 MST 2010
I have found that the problem is the linker script (it was one I hacked from an LPC1343 script)

To solve this, I created a dummy project for the LPC1765, found where the linker script was stored and modified some symbol names to suit my startup file. Now it all works.

Thanks for the hint.

I have attached the new linker script for reference.
0 项奖励
回复

1,317 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by bmentink on Wed Aug 18 12:25:44 MST 2010
I am using my own linker script, it is attached:

Many Thanks,
Bernie :)
0 项奖励
回复

1,317 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Wed Aug 18 01:13:38 MST 2010
It does look like the linker has exited unexpectedly. Are you providing your own linker script, or are you using the auto-generated linker script? If it is your own, please post it. If not, please contact our support group and send your project so we can reproduce.
0 项奖励
回复