[coldfire-gnu-discuss] Solution: Compiling C code without producing a .eh_frame section. (GCC 4.4.1/CS 4.4-52 Lite)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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.