Solution: Compiling C code without producing a .eh_frame section. (GCC 4.4.1/CS 4.4-52 Lite)

Niels A. Moseley n.a.moseley at alumnus.utwente.nl
Tue Nov 24 11:57:18 UTC 2009


Hi All,

I've upgraded to the latest CodeSourcery Lite ELF for Coldfire (uses GCC 
4.4.1). The upgraded compiler produced exception frames (.eh_frame) 
section even for pure C compiles, which the old version didn't do.

To avoid these unnecessary sections, add -fno-dwarf2-cfi-asm as a 
compiler argument.

It took me a while to figure this out -- I hope this message will help 
others.

Regards,
Niels Moseley.



More information about the coldfire-gnu-discuss mailing list