https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120515
--- Comment #2 from Peter Eisentraut <peter at eisentraut dot org> --- Yes, I did figure that out, and -nodefaultexport does work. But as you said, it's not documented, and it's not clear whether it should be the burden of the user to use it.