From dd272e5774a6a64a0380c4dab5f0424c3ca66897 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 5 Mar 2004 04:24:45 +0000 Subject: Update. * sysdeps/generic/ldsodefs.h: Don't define _dl_name_match_p as inline. * elf/dl-misc.c: Define _dl_name_match_p here. * elf/dl-open.c (check_libc_caller): Don't use _dl_name_match_p. --- sysdeps/generic/ldsodefs.h | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) (limited to 'sysdeps') diff --git a/sysdeps/generic/ldsodefs.h b/sysdeps/generic/ldsodefs.h index a3d7935ee2..d7a6093b21 100644 --- a/sysdeps/generic/ldsodefs.h +++ b/sysdeps/generic/ldsodefs.h @@ -172,21 +172,8 @@ struct libname_list /* Test whether given NAME matches any of the names of the given object. */ -static __inline int -__attribute__ ((unused, always_inline)) -_dl_name_match_p (const char *__name, struct link_map *__map) -{ - int __found = strcmp (__name, __map->l_name) == 0; - struct libname_list *__runp = __map->l_libname; - - while (! __found && __runp != NULL) - if (strcmp (__name, __runp->name) == 0) - __found = 1; - else - __runp = __runp->next; - - return __found; -} +extern int _dl_name_match_p (const char *__name, struct link_map *__map) + internal_function; /* Function used as argument for `_dl_receive_error' function. The arguments are the error code, error string, and the objname the -- cgit 1.4.1