[Bug target/77267] MPX does not work in a presence of "-Wl,-as-needed" option (Ubuntu default)
ienkovich at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Sep 5 20:08:00 GMT 2016
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.
More information about the Gcc-bugs
mailing list