On Thu, 3 Dec 2009, Ingo Rohloff wrote:
Hello, I want to build a cross compiler for C and C++. Host System is Windows Cygwin (1) and Linux (2) running on Intel x86. Target System is "PowerPC" bare metal (no operating system at all, so "EABI" ?) Now if possible I would like to completely disable exception support for C and C++. That means: I do not want "new" to throw an exception. I do not want to get ".eh_frame" sections in my objects. I do not want to get any kind of stack unwind information in my object files (except in the debug sections). Is there any possibility to achieve that ?
I build my code with -fno-exceptions. You may also want to try -fno-unwind-tables if -fno-exceptions isn't enough. I'm not sure how to build GCC such that these options are the defaults, if that's what you want.