This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Further improved native as support on Solaris/x86
- From: Paul Brook <paul at codesourcery dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Roger Sayle <roger at eyesopen dot com>, Mark Mitchell <mark at codesourcery dot com>
- Date: Fri, 21 Jul 2006 21:59:46 +0100
- Subject: Re: [PATCH] Further improved native as support on Solaris/x86
- References: <Pine.LNX.4.44.0607211357320.15174-100000@www.eyesopen.com>
> .section .eh_frame,"a",@progbits
> .Lframe1:
> ...
> .long DW.ref.__gxx_personality_v0-.
I thought this was the standard way of generating a pc-relative data
relocation.
Note that while the two symbols are in different section the symbol on the RHS
is in the same section as the value being calculated. Unless I'm missing
something, this is the only sane way to generate position independent data.
Paul