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


 > From: Alexandre Oliva <aoliva@redhat.com>
 > 
 > 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.

Sorry, doesn't work.  I get:

as: Error: /unwind-dw2.s, line 566: Invalid symbol in expression
      .dword %gp_rel(.L51)
as: Error: /unwind-dw2.s, line 566: ill-formed symbolic expression
as: Error: /unwind-dw2.s, line 566: undefined symbol in expression

--
Kaveh R. Ghazi			ghazi@caip.rutgers.edu


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