MCF5445x with LTIB - static linking

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

MCF5445x with LTIB - static linking

跳至解决方案
1,868 次查看
DJP
Contributor I

I am using LTIB (m54455_20071214-ltib-final.iso) and the target is MCF5445x.  Currently have an eval board that has a flash filing system complete with stdc/stdc++ shared objects.  I was looking into the options of creating a statically linked executable, so I put "-static" on the link line.  When attempting to run on the target I get illegal instruction.  If I remove "-static" it works ok.  I tried helloWorld and that didn't work either.

 

Anybody tried something similar?

 

thanks

标签 (1)
0 项奖励
回复
1 解答
1,059 次查看
fsl_linux_spt
Contributor III

This looks like a toolchain issue reported to codesourcery with -static

 

Here's the report to CodeSourcery:

 http://www.codesourcery.com/archives/coldfire-gnu-discuss/msg00620.html
Here is the the gcc bug on gcc's bugzilla:

 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36047

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,060 次查看
fsl_linux_spt
Contributor III

This looks like a toolchain issue reported to codesourcery with -static

 

Here's the report to CodeSourcery:

 http://www.codesourcery.com/archives/coldfire-gnu-discuss/msg00620.html
Here is the the gcc bug on gcc's bugzilla:

 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36047

0 项奖励
回复
1,059 次查看
DJP
Contributor I
thanks for that, very helpful!
0 项奖励
回复