[Bug libstdc++/123480] -static-libstdc++ exposes libstdc++ symbols in executable on RISC-V/MIPS, but not on x86

uwu at icenowy dot me gcc-bugzilla@gcc.gnu.org
Thu Jan 8 11:26:37 GMT 2026


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123480

--- Comment #28 from Icenowy Zheng <uwu at icenowy dot me> ---
Please see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123480#c24 , the nm
command call shows that 200+ cxx-related symbols are exported by the
executable.

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123480#c19 could be referenced for
the behavior of another library (I used libz.a from zlib-ng) that no symbols
from libz are exported.


More information about the Gcc-bugs mailing list