This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Questions about PIC code
- From: Richard Henderson <rth at redhat dot com>
- To: Peter Barada <pbarada at mail dot wm dot sps dot mot dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 23 Jan 2003 23:32:48 -0800
- Subject: Re: Questions about PIC code
- References: <200301231624.h0NGONN29534@hyper.wm.sps.mot.com>
On Thu, Jan 23, 2003 at 11:24:23AM -0500, Peter Barada wrote:
> My question revolves around whether functions that are static to the
> file require a call through the PLT.
No.
> If so, then how can one figure out if a symbol is a .text symbol and static?
>From within the compiler?
TREE_CODE(decl) == FUNCTION_DECL && !TREE_PUBLIC(decl)
> Is there a quick list out on the web that describes what objects go
> through the GOT/PLT with regards to static/non-static, code/data/const,
> pc-relative capable or not?
No, cause that all depends on the processor.
r~