|
Re: [PATCH] Add more relocs to SH ldso: msg#00204lib.uclibc.general
* Stefan Allius <allius@xxxxxxxxxx> on Thu, Oct 31, 2002: > --- /home/allius/uClibc/ldso/ldso/sh/elfinterp.c Tue Oct 1 08:10:38 2002 > +++ /home/allius/dev/avmux/linux/uClibc/ldso/ldso/sh/elfinterp.c Wed Oct > 30 10:20:31 2002 > @@ -290,6 +290,7 @@ > case R_SH_DIR32: > *reloc_addr = symbol_addr + rpnt->r_addend; > break; > + case R_SH_GLOB_DAT: > case R_SH_JMP_SLOT: > *reloc_addr = symbol_addr + rpnt->r_addend; > break; Yes, I suppose this optimization can be made in the bootstrap loader as well for R_SH_DIR32, R_SH_GLOB_DAT, and R_SH_JMP_SLOT. Erik, could you use the above for those cases instead of my patch? > --- /home/allius/uClibc/ldso/ldso/sh/resolve.S Tue Oct 1 08:10:38 2002 > +++ /home/allius/dev/avmux/linux/uClibc/ldso/ldso/sh/resolve.S Wed Oct > 30 15:04:01 2002 > @@ -1,3 +1,6 @@ > +#define __need_uClibc_config_h 1 > +#include <bits/uClibc_config.h> > + > /* > * Stolen from glibc-2.2.2 by Eddie C. Dost <ecd@xxxxxxxxxx> > */ > @@ -79,6 +82,10 @@ > > .balign 4 > 3: > +#ifdef HAVE_SHARED > + .long _dl_linux_resolver@PLT-(.jmp_loc-(.)) > +#else > .long _dl_linux_resolver - .jmp_loc > +#endif > .size _dl_linux_resolve, . - _dl_linux_resolve I don't understand. Won't HAVE_SHARED always be true when building ldso? M. R.
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Fwd: OpenSSH problems: 00204, Erik Andersen |
|---|---|
| Next by Date: | Re: SH initfini.awk problems ?: 00204, M. R. Brown |
| Previous by Thread: | Re: [PATCH] Add more relocs to SH ldsoi: 00204, Stefan Allius |
| Next by Thread: | [PATCH] Fix SH ldso build warnings: 00204, M. R. Brown |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |