This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils 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 address+symbol issue.


cgd@broadcom.com wrote:
[snip]
> I can think of several possible solutions here:
> 
>         (1) don't allow GCC to emit "dla sym+offset" for
>         -mno-explicit-relocs, or maybe just for -mno-explicit-relocs
>         and the ABIs which stuff 64-bit pointers into 32-bit object
>         files.
> 
>         (2) make binutils emit long code sequences for sym + offset when
>         assembling objects for an ABI which stuffs 64-bit pointers
>         into 32-bit object files.

AFAICS this is only EABI64, so we can just add it to the
HAS_64BIT_ADDRESSES macro in gas.

>         (3) punt.  (maybe even xfail the test for some MIPS targets w/
>         -mno-explicit-relocs.)
> 
> It seems to me that (2) is *probably* the right fix, but others'
> opinions would be appreciated.  I think I'm OK with (3), too, but it
> might bite others down the road...

I prefer (2), slow but working code is better than broken code.


Thiemo


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