linux-mips
[Top] [All Lists]

RE: [uClibc] Re: uclibc mips ld.so and undefined symbols with nonzerosym

To: "Bradley D. LaRonde" <brad@laronde.org>, "Daniel Jacobowitz" <dan@debian.org>
Subject: RE: [uClibc] Re: uclibc mips ld.so and undefined symbols with nonzerosymbol table entry st_value
From: "Joakim Tjernlund" <Joakim.Tjernlund@lumentis.se>
Date: Tue, 11 May 2004 23:50:44 +0200
Cc: <uclibc@uclibc.org>, "Richard Sandiford" <rsandifo@redhat.com>, <linux-mips@linux-mips.org>
Importance: Normal
In-reply-to: <053f01c43778$c2903390$8d01010a@prefect>
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
> > > >
> > > > Probably, since MIPS doesn't have a copy reloc.
> > >
> > > How about the other copy reloc right below there:
> > >
> > >     else if (sym->st_shndx == SHN_COMMON) {
> > >       *got_entry = (unsigned long) _dl_find_hash(strtab +
> > >         sym->st_name, tpnt->symbol_scope, ELF_RTYPE_CLASS_COPY);
> > >     }
> > >
> > > ?
> >
> > Perhaps DL_NO_COPY_RELOCS should be defined for MIPS then?
> > see ldso/include/dl-elf.h.
> 
> For mips glibc 2.3.3 does:
> 
> #define elf_machine_type_class(type)            ELF_RTYPE_CLASS_PLT
> 
> and never uses ELF_RTYPE_CLASS_COPY directly (though it does use
> ELF_RTYPE_CLASS_PLT directly).
> 
> Regards,
> Brad
> 

Good, try replacing all ELF_RTYPE_CLASS_COPY with ELF_RTYPE_CLASS_PLT in 
mips/elfinterp.c and define DL_NO_COPY_RELOCS in mips/dl-sysdep.h

  Jocke

<Prev in Thread] Current Thread [Next in Thread>