about summary refs log tree commit diff
path: root/elf
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-03-11 06:06:12 +0000
committerUlrich Drepper <drepper@redhat.com>2004-03-11 06:06:12 +0000
commitf032388692f35c50a10d7ce632a2ff606ea02825 (patch)
tree2aa32dc731b38b4c98f1e5915bc7dfecabc2cdf0 /elf
parent6d3a2bec95f9bdbe7db4344b1ada866561e95857 (diff)
downloadglibc-f032388692f35c50a10d7ce632a2ff606ea02825.tar.gz
glibc-f032388692f35c50a10d7ce632a2ff606ea02825.tar.xz
glibc-f032388692f35c50a10d7ce632a2ff606ea02825.zip
Update.
	* sysdeps/generic/errno.c: Include <dl-sysdep.h>.  Use
	RTLD_PRIVATE_ERRNO to decide whether errno compat symbols are needed.
Diffstat (limited to 'elf')
-rw-r--r--elf/dl-sym.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/elf/dl-sym.c b/elf/dl-sym.c
index e3447d9470..c7c737804e 100644
--- a/elf/dl-sym.c
+++ b/elf/dl-sym.c
@@ -60,8 +60,8 @@ _dl_tls_symaddr (struct link_map *map, const ElfW(Sym) *ref)
 
 static void *
 internal_function
-do_sym (void *handle, const char *name, struct r_found_version *vers,
-	int flags, void *who)
+do_sym (void *handle, const char *name, void *who,
+	struct r_found_version *vers, int flags)
 {
   const ElfW(Sym) *ref = NULL;
   lookup_t result;
@@ -128,7 +128,6 @@ RTLD_NEXT used in code not dynamically loaded"));
 }
 
 
-
 void *
 internal_function
 _dl_vsym (void *handle, const char *name, const char *version, void *who)
@@ -142,7 +141,7 @@ _dl_vsym (void *handle, const char *name, const char *version, void *who)
   /* We don't have a specific file where the symbol can be found.  */
   vers.filename = NULL;
 
-  return do_sym (handle, name, &vers, 0, who);
+  return do_sym (handle, name, who, &vers, 0);
 }
 
 
@@ -150,5 +149,5 @@ void *
 internal_function
 _dl_sym (void *handle, const char *name, void *who)
 {
-  return do_sym (handle, name, NULL, DL_LOOKUP_RETURN_NEWEST, who);
+  return do_sym (handle, name, who, NULL, DL_LOOKUP_RETURN_NEWEST);
 }