MCF5445x with LTIB - static linking

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MCF5445x with LTIB - static linking

Jump to solution
1,271 Views
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

Labels (1)
0 Kudos
1 Solution
462 Views
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

View solution in original post

0 Kudos
2 Replies
463 Views
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 Kudos
462 Views
DJP
Contributor I
thanks for that, very helpful!
0 Kudos