This is the mail archive of the gcc-patches@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: [PATCH] Further improved native as support on Solaris/x86


>         .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


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