[Bug c++/92572] Vague linkage does not work reliably when a matching segment is in a dynamically linked libarary on Linux
amonakov at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Feb 11 07:02:00 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92572
--- Comment #5 from Alexander Monakov <amonakov at gcc dot gnu.org> ---
GCC is emitting static_local as @gnu_unique_object, so it should be unified by
the Glibc dynamic linker. You can use 'nm -CD' to check its type after linking
for the main executable and the library to make sure ld keeps it unique, and
LD_DEBUG=all (see 'man ld.so') to see how it gets resolved at runtime.
More information about the Gcc-bugs
mailing list