[Bug target/12306] GOT pointer (r12) reloaded unnecessarily
kkojima at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Nov 26 06:05:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12306
--- Comment #7 from Kazumoto Kojima <kkojima at gcc dot gnu.org> ---
Even a static pic function can be called from non-pic functions
via function pointer. Functions with hidden visibility in static
libraries can be compiled with -fPIC. A typical example is libgcc.a.
Something based on WPA may be possible, though in general, it would
be not easy to assure a pic function can never be called from any
non-pic functions. An explicit attribute or a flag which assures
that will work, though might be not so attractive.
More information about the Gcc-bugs
mailing list