aboutsummaryrefslogtreecommitdiff
path: root/elf
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-06-07 00:02:14 +0000
committerUlrich Drepper <drepper@redhat.com>1999-06-07 00:02:14 +0000
commit9a8fcca0b33c26759134a545ac45251df53418a3 (patch)
tree981351d75ac1c612d7f356b0438ec5f1a3227c12 /elf
parente0082312bcfdce398099d58add30cc02b79f129b (diff)
downloadglibc-9a8fcca0b33c26759134a545ac45251df53418a3.zip
glibc-9a8fcca0b33c26759134a545ac45251df53418a3.tar.gz
glibc-9a8fcca0b33c26759134a545ac45251df53418a3.tar.bz2
Update.
* sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SIOCGIFNAME for kernel >= 2.1.50. * sysdeps/unix/sysv/linux/if_index.c: Correct typo (SIOGIFNAME -> SIOCGIFNAME) and use __ASSUME_SIOCGIFNAME. * sysdeps/libm-ieee754/w_j0.c: Remove __ from symbol definitions. * sysdeps/libm-ieee754/w_j0f.c: Likewise. * sysdeps/libm-ieee754/w_j0l.c: Likewise. * sysdeps/libm-ieee754/w_j1.c: Likewise. * sysdeps/libm-ieee754/w_j1f.c: Likewise. * sysdeps/libm-ieee754/w_j1l.c: Likewise. * sysdeps/libm-ieee754/w_jn.c: Likewise. * sysdeps/libm-ieee754/w_jnf.c: Likewise. * sysdeps/libm-ieee754/w_jnl.c: Likewise. * stdio-common.c: Correct typos. * math/libm-test.c (jn_test): Adjust delta. (y1_test): Likewise. (yn_test): Likewise. * elf/do-lookup.h: It should never happen that if we expect a versioned symbol from a file the file has no version table. This should have been checked in dl-version.c. * elf/dl-lookup.c: Include assert.h.
Diffstat (limited to 'elf')
-rw-r--r--elf/dl-lookup.c1
-rw-r--r--elf/do-lookup.h12
2 files changed, 9 insertions, 4 deletions
diff --git a/elf/dl-lookup.c b/elf/dl-lookup.c
index 16173c9..7646587 100644
--- a/elf/dl-lookup.c
+++ b/elf/dl-lookup.c
@@ -18,6 +18,7 @@
Boston, MA 02111-1307, USA. */
#include <alloca.h>
+#include <assert.h>
#include <string.h>
#include <unistd.h>
#include <elf/ldsodefs.h>
diff --git a/elf/do-lookup.h b/elf/do-lookup.h
index 01ad293..147560b 100644
--- a/elf/do-lookup.h
+++ b/elf/do-lookup.h
@@ -99,10 +99,14 @@ FCT (const char *undef_name, unsigned long int hash,
/* We need a versioned symbol but haven't found any. If
this is the object which is referenced in the verneed
entry it is a bug in the library since a symbol must
- not simply disappear. */
- if (version->filename != NULL
- && _dl_name_match_p (version->filename, map))
- return -2;
+ not simply disappear.
+
+ It would also be a bug in the object since it means that
+ the list of required versions is incomplete and so the
+ tests in dl-version.c haven't found a problem.*/
+ assert (version->filename == NULL
+ || ! _dl_name_match_p (version->filename, map));
+
/* Otherwise we accept the symbol. */
}
else