https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77267
Ilya Enkovich <ienkovich at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ienkovich at gcc dot gnu.org --- Comment #3 from Ilya Enkovich <ienkovich at gcc dot gnu.org> --- (In reply to Sergey from comment #1) > Why can't we engage usual linkage mechanism by adding some undefined weak > symbol in mpx code and its definition in mpx library ? ( probably two > different ones, for libmpx and libmpxwrappers ). Then we wouldn't have to > juggle with (no-)as-needed. How would we exactly use that symbol? Is there any chance linker throw away this weak symbol usage as unneeded? This scheme looks like possible but requires careful design.