This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Handling of -fpic in ASM_OUTPUT_MI_THUNK in sparc
- To: Jason Merrill <jason at cygnus dot com>
- Subject: Re: Handling of -fpic in ASM_OUTPUT_MI_THUNK in sparc
- From: Richard Henderson <rth at cygnus dot com>
- Date: Tue, 18 Nov 1997 12:29:13 -0800
- Cc: Teemu Torma <tot at trema dot com>, egcs at cygnus dot com
- References: <199711181604.RAA19200.cygnus.egcs@lev.labs.trema.com> <u990umm7ie.fsf@yorick.cygnus.com>
- Reply-To: Richard Henderson <rth at cygnus dot com>
On Tue, Nov 18, 1997 at 09:33:45AM -0800, Jason Merrill wrote:
> > Besides, the current test does not help if the main program compiled
> > without -fpic emits thunks that call methods in a shared library.
>
> Huh? How is this different from any other function that calls functions in
> a shared library?
Normal function calls use call not sethi+jmp. The former case gets
fixed up to a call through the PLT, the later results in runtime
relocations to the read-only text segment. Which works, but slows down
startup unnecessarily.
r~