https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83452
--- Comment #8 from dave.anglin at bell dot net --- On 2017-12-18 3:18 PM, John David Anglin wrote: >> This was changed for the Solaris linker BTW. Which didn't like UNDEF >> globals >> that cannot be resolved. Using weak should in theory work... > If gcc doesn't want to keep this symbol, maybe I can define it in > libgcc. We have a collection > of nop routines in libgcc_stub.a to provide definitions for various > weak undefined functions. The attached hack together with your change fixes the build of save_6.