This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/70082] Attribute ifunc marked functions should not be allowed to call other functions.
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 04 Mar 2016 15:54:34 +0000
- Subject: [Bug c/70082] Attribute ifunc marked functions should not be allowed to call other functions.
- Auto-submitted: auto-generated
- References: <bug-70082-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70082
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
I don't think the compiler should do the policeman here, it is enough if glibc
documents what it does and doesn't support in ifunc (which is of course
generally arch dependent, it really depends on if you need e.g. RELATIVE
relocations relocated in the current library/binary already, or if you need
other data relocations, etc. E.g. calling hidden function or even non-hidden,
as long as you hide it in symbol version script, is fine. Calling function
from other library very likely not.