diff options
author | Ulrich Drepper <drepper@redhat.com> | 1998-11-19 17:46:16 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1998-11-19 17:46:16 +0000 |
commit | 50463d27cdd5b7a8dd7401ca4850ae3871b9aa78 (patch) | |
tree | 92c4fa1ccda193b498ae2919516450efab3a678f /elf/rtld.c | |
parent | b0428320f5c2a0444786f144061095c29bfe6943 (diff) | |
download | glibc-50463d27cdd5b7a8dd7401ca4850ae3871b9aa78.tar.gz |
Update.
1998-11-19 Geoff Keating <geoffk@ozemail.com.au>
* elf/rtld.c (_dl_start): Handle weak undefined symbols in ld.so
correctly.
Diffstat (limited to 'elf/rtld.c')
-rw-r--r-- | elf/rtld.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/elf/rtld.c b/elf/rtld.c index b88e1e12b0..38c7b051b1 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. */ |