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] generate PIC jump tables for n32 and n64


On Oct 14, 2002, "Kaveh R. Ghazi" <ghazi@caip.rutgers.edu> wrote:

> I tried this on my irix6.5 box and I got an error in stage1 building
> the multilibbed -mabi=64 libgcc.a/libgcc_eh.a:

>> as: Error: /var/tmp//cc0XzJJd.s, line 565: undefined assembler operation: .gpdword

Eek.  Thanks for trying it...

Oh, well...  Thanks for trying.  I'm surprised this is not supported
by the IRIX assembler.  Perhaps the spelling is different?  I don't
remember where I saw gpdword first, perhaps in a patch Eric sent me
when I asked him about PIC jump tables.

I see the MIPS ELF64 spec suggests the use of %gp_rel(label) instead.
Kaveh, would you try replacing:

.gpdword .L51

with something like:

.dword %gp_rel(.L51)

and see whether this assembles.  If it does, I'll try to rework the
patch such that it generates something like that.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                 aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist                Professional serial bug killer


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