https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42159
Jack Howarth <howarth.at.gcc at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |howarth.at.gcc at gmail dot com --- Comment #31 from Jack Howarth <howarth.at.gcc at gmail dot com> --- (In reply to Pierre Ossman from comment #28) > Or normal way of doing things is to statically link libstdc++ and libgcc_eh. > This results in crashing programs. If we inject libSystem before libgcc_eh > however, we get the system unwind routines and the program works fine. This > is not quite the same as the previous cases mentioned on this bug, but the > dumps show that a custom libgcc_s is being used so it should be equivalent. > You might check out the original posting on this issue... http://lists.cs.uiuc.edu/pipermail/llvmdev/2009-September/025900.html IMHO, the static linkage of -lgcc_eh is evil as it potentially breaks the requirement that only a single unwinder (always the system one) be used.