Completely disable exception support for G++ cross compiler

Ingo Rohloff Ingo.Rohloff@lauterbach.com
Thu Dec 3 14:40:00 GMT 2009


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 ?

with best regards
  Ingo



More information about the Gcc-help mailing list