Created attachment 6108 [details] Testcase
Created attachment 6109 [details] Two resolution files
As observed in <http://gcc.gnu.org/PR51523>, this looks more like a linker bug. The option `--exclude-all-symbols' does not work, too (though symbols are not exported, they still get resolution PREVAILING_DEF_IRONLY_EXP); but `--version-script=...' option works.