[PATCH] Move DONT_USE_BOOTSTRAP_MAP defininition to dl-machine.h
Jakub Jelinek
jakub@redhat.com
Thu Aug 22 17:57:00 GMT 2002
On Thu, Aug 22, 2002 at 08:07:26PM -0400, Roland McGrath wrote:
> I just experimented with making a static variable in rtld.c and redefining
> GL using that locally, with strong_alias to define _rtld_global. It seems
> to work. Can platforms like Alpha and SPARC avoid the relocs for local
> symbols?
SPARC, unless GOTOFF like relocs are added cannot, it still has to use a
R_SPARC_RELATIVE reloc and thus we must not reference it
before ld.so relocation. For Alpha, I'll look when I wake up.
Note that i386-linux glibc build segfaults in ld.so ATM too (while
i686-linux works), both using gcc 3.2. In that case it seems like
%ebx was not set up as early as needed before _dl_start first references it.
Jakub
More information about the Libc-hacker
mailing list