about summary refs log tree commit diff
path: root/elf/dl-load.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2020-10-09 10:13:14 +0200
committerFlorian Weimer <fweimer@redhat.com>2020-10-09 10:22:19 +0200
commitbb5fd5ce64b598085bdb8a05cb53777480fe093c (patch)
treeeeaf58f2f0530b07d314d1c7d1d89b20b70da9db /elf/dl-load.c
parent647103ea3a2aae2e6791b3bebe9e33eedc168102 (diff)
downloadglibc-bb5fd5ce64b598085bdb8a05cb53777480fe093c.tar.gz
glibc-bb5fd5ce64b598085bdb8a05cb53777480fe093c.tar.xz
glibc-bb5fd5ce64b598085bdb8a05cb53777480fe093c.zip
elf: Do not pass GLRO(dl_platform), GLRO(dl_platformlen) to _dl_important_hwcaps
In the current code, the function can easily obtain the information
on its own.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'elf/dl-load.c')
-rw-r--r--elf/dl-load.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/elf/dl-load.c b/elf/dl-load.c
index 0c8fa72c4d..f3201e7c14 100644
--- a/elf/dl-load.c
+++ b/elf/dl-load.c
@@ -697,8 +697,7 @@ _dl_init_paths (const char *llp, const char *source)
 
 #ifdef SHARED
   /* Get the capabilities.  */
-  capstr = _dl_important_hwcaps (GLRO(dl_platform), GLRO(dl_platformlen),
-				 &ncapstr, &max_capstrlen);
+  capstr = _dl_important_hwcaps (&ncapstr, &max_capstrlen);
 #endif
 
   /* First set up the rest of the default search directory entries.  */