[Bug target/19520] protected function pointer doesn't work right

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jan 18 17:13:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19520

--- Comment #27 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-01-18 15:17:19 UTC ---
(In reply to comment #26)

> The linker, however, mandates that the address to symbol should not be loaded
> directly, but only through the GOT. This is necessary because the psABI
> requires that the function address resolve to the PLT entry found in the
> position-dependent executable.

Why on earth does it do that?  If we have to go through the GOT it can
as well contain the functions address and not that of the PLT entry?



More information about the Gcc-bugs mailing list