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
On Fri, Jul 21, 2006 at 02:19:25PM -0600, Roger Sayle wrote:
> when compiled with -fPIC. For example, on x86_64-unknown-linux-gnu
> this generates:
>
> .section .eh_frame,"a",@progbits
> .Lframe1:
> ...
> .long DW.ref.__gxx_personality_v0-.
>
> where the symbol DW.ref.__gxx_personality_v0 appears in a different
> section:
>
> .section
> .gnu.linkonce.d.DW.ref.__gxx_personality_v0,"aw",@progbits
> .align 8
> .type DW.ref.__gxx_personality_v0, @object
> .size DW.ref.__gxx_personality_v0, 8
> DW.ref.__gxx_personality_v0:
> .quad __gxx_personality_v0
There is nothing wrong on this, .long DW.ref.__gxx_personality_v0-.
just becomes a PC relative relocation, which x86-64 has.
As long as the second symbol in the subtraction is dot or dot + constant
or some non-exported symbol in the same fragment, there is nothing
to warn about and it is clear what should be emitted.
Jakub