This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Trying to build crosscompiler for ARM
So, can I get gcc without unwind at all? I really only need the C
compiler and no unwind exceptions.
As far as I can see, the ARM libgcc division routines always require
unwinding support. To get around that, I use an evil hack: put this
char __aeabi_unwind_cpp_pr0[0];
in a C file that you link before libgcc, and none of the unwinder
stuff will be pulled in. Your program will of course die horribly
when you divide by zero ;-)
HTH,
Segher