This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Questions about PIC code


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]