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: mips tls with -mlong64/-mgp32


DJ Delorie <dj@redhat.com> writes:
>> Maybe this is a silly question, but what the heck is going on here?
>> 
>>      Pointers are the same size as `long's, or the same size
>>      as integer registers, whichever is smaller.
>> 
>> Shouldn't the tprel offset be pointer-sized then?  Doesn't seem much
>> point in loading a bigger offset than fits in a register.
>
> Hence, it fails with -mlong64/-mgp32 ;-)

I don't understand.  Like Dan says, pointers are 32 bits wide for -mgp32,
regardless of whether you use -mlong64 or not.  This is an IP32, L64 ABI.

> oh, and -mabi=eabi.  Sorry about omitting that.  Anyway, the GOT has
> 64 bit values in it, but registers are 32 bits.

Hmm, which GOT values do you mean?  Pointers in the GOT ought to be 32 bits.

Richard


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