This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [mips] generate PIC jump tables for n32 and n64
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: 15 Oct 2002 01:52:48 -0300
- Subject: Re: [mips] generate PIC jump tables for n32 and n64
- Organization: GCC Team, Red Hat
- References: <200210142146.RAA23670@caip.rutgers.edu>
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