From: Ulrich Drepper Date: Thu, 19 Nov 1998 17:46:16 +0000 (+0000) Subject: Update. X-Git-Tag: cvs/libc-2_0_103~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50463d27cdd5b7a8dd7401ca4850ae3871b9aa78;p=thirdparty%2Fglibc.git Update. 1998-11-19 Geoff Keating * elf/rtld.c (_dl_start): Handle weak undefined symbols in ld.so correctly. --- diff --git a/ChangeLog b/ChangeLog index 009dbdea62f..f241c1fa6ce 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +1998-11-19 Geoff Keating + + * elf/rtld.c (_dl_start): Handle weak undefined symbols in ld.so + correctly. + 1998-11-19 Ulrich Drepper * misc/error.c: Undo last change. diff --git a/elf/rtld.c b/elf/rtld.c index b88e1e12b04..38c7b051b18 100644 --- a/elf/rtld.c +++ b/elf/rtld.c @@ -132,7 +132,8 @@ _dl_start (void *arg) /* This #define produces dynamic linking inline functions for bootstrap relocation instead of general-purpose relocation. */ #define RTLD_BOOTSTRAP -#define RESOLVE(sym, version, flags) bootstrap_map.l_addr +#define RESOLVE(sym, version, flags) \ + ((*(sym))->st_shndx == SHN_UNDEF ? 0 : bootstrap_map.l_addr) #include "dynamic-link.h" /* Figure out the run-time load address of the dynamic linker itself. */