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
Solved! Go to Solution.
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:
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: