This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/19520] protected function pointer doesn't work right
- From: "thiago at kde dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 19 Jan 2012 18:52:57 +0000
- Subject: [Bug target/19520] protected function pointer doesn't work right
- Auto-submitted: auto-generated
- References: <bug-19520-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19520
--- Comment #30 from Thiago Macieira <thiago at kde dot org> 2012-01-19 18:52:57 UTC ---
This does solve the problem.
It's just unfortunate that it does so by creating more work for the library
even if no executable ever takes the address of this protected function.
It would have been preferable to somehow tell the compiler when compiling an
executable that this function it's taking the address of is protected
elsewhere, so it should use the GOT too.