]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Thu, 19 Nov 1998 17:46:16 +0000 (17:46 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 19 Nov 1998 17:46:16 +0000 (17:46 +0000)
1998-11-19  Geoff Keating  <geoffk@ozemail.com.au>

* elf/rtld.c (_dl_start): Handle weak undefined symbols in ld.so
correctly.

ChangeLog
elf/rtld.c

index 009dbdea62f70b50b1e47f5497bd8b4350ae6b5c..f241c1fa6cea3fbaaf59f16a046505411e523d3b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+1998-11-19  Geoff Keating  <geoffk@ozemail.com.au>
+
+       * elf/rtld.c (_dl_start): Handle weak undefined symbols in ld.so
+       correctly.
+
 1998-11-19  Ulrich Drepper  <drepper@cygnus.com>
 
        * misc/error.c: Undo last change.
index b88e1e12b048d091cfa0bd885deae5a6eb5cbea2..38c7b051b183a4eaa5f7705a16c597e364fece26 100644 (file)
@@ -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.  */