------- Comment #13 from howarth at nitro dot med dot uc dot edu 2009-09-23 16:28 ------- Actually, the files darwin-libgcc.10.4.ver and darwin-libgcc.10.5.ver in gcc/config/rs6000 and gcc/config/i386 must be used in that manner (with -exported_symbols_list instead of -unexported_symbols_list) to create libgcc_s.10.4.dylib and libgcc_s.10.5.dylib. So just duplicate what Apple does to create those shared libraries but invert the logic of how darwin-libgcc.10.5.ver is used and name the new libgcc as libgcc_ext.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39888