https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64234
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- I think we can only recommend not to do that, or suggest users to consider -Wl,-E. The linker automatically makes symbols mentioned in dependent libraries exported from binaries, but e.g. implying -Wl,-E from -static-libasan is IMNSHO undesirable, it doesn't make just the selected few symbols dynamic, but all, and that really should be users decision whether it is desirable or not.