https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114036
--- Comment #2 from Iain Sandoe <iains at gcc dot gnu.org> --- if there are lots of symbols that need to be undefined .. then one can use an undefined symbols file. Of course, it does not work if we do not know the symbol names at build-time.