Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/libexec/ld.elf_so If we match a symbol name, but it's undefi...
details: https://anonhg.NetBSD.org/src/rev/8790b7864065
branches: trunk
changeset: 536314:8790b7864065
user: mycroft <mycroft%NetBSD.org@localhost>
date: Fri Sep 13 03:40:40 2002 +0000
description:
If we match a symbol name, but it's undefined, do not continue searching the
hash chain.
diffstat:
libexec/ld.elf_so/symbol.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (22 lines):
diff -r 8e6904acaae4 -r 8790b7864065 libexec/ld.elf_so/symbol.c
--- a/libexec/ld.elf_so/symbol.c Fri Sep 13 03:22:08 2002 +0000
+++ b/libexec/ld.elf_so/symbol.c Fri Sep 13 03:40:40 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: symbol.c,v 1.18 2002/09/12 22:56:29 mycroft Exp $ */
+/* $NetBSD: symbol.c,v 1.19 2002/09/13 03:40:40 mycroft Exp $ */
/*
* Copyright 1996 John D. Polstra.
@@ -134,9 +134,10 @@
|| (!in_plt && symp->st_value != 0 &&
ELF_ST_TYPE(symp->st_info) == STT_FUNC)
#endif
- ) {
+ )
return symp;
- }
+ else
+ return NULL;
}
symnum = obj->chains[symnum];
}
Home |
Main Index |
Thread Index |
Old Index