This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: target/19520: protected function pointer doesn't work right
- From: Daniel Jacobowitz <drow at false dot org>
- To: "H. J. Lu" <hjl at lucon dot org>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 20 Jan 2005 17:59:07 -0500
- Subject: Re: PATCH: target/19520: protected function pointer doesn't work right
- References: <20050120225647.GA21280@lucon.org>
On Thu, Jan 20, 2005 at 02:56:47PM -0800, H. J. Lu wrote:
> The issue is the function address of a protected function isn't
> necessarily the same as the address of the function body nor has to
> be in the same DSO where the function is defined. In that case, the
> only optimization we can do is to skip PLT when branch. This
> patch marks if a symbol is protected and also treats a protected
> function as normal. But it will skip PLT when generating the branch
> instruction.
Is there clear documentation of these very odd semantics somewhere?
How about test cases?
--
Daniel Jacobowitz