https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113403
--- Comment #14 from Iain Sandoe <iains at gcc dot gnu.org> --- Created attachment 57182 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57182&action=edit patch under test this is what I'm testing - these functions are removed from libgcc.a and added to libgcc_eh.a - since most versions of Darwin cannot use libgcc_eh, it arranges to make a CRT containing them that can be linked in cases that require it. - for Darwin, we also make the definitions weak and exported where used in DSOs, this means that a dynamically linked program should only end up with one copy of the cache even if the shared libgcc is not in use.