aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--elf/rtld.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/elf/rtld.c b/elf/rtld.c
index 600f062..283ea7e 100644
--- a/elf/rtld.c
+++ b/elf/rtld.c
@@ -1167,7 +1167,8 @@ process_envvars (enum mode *modep, int *lazyp)
case 11:
/* Path where the binary is found. */
- if (memcmp (&envline[3], "ORIGIN_PATH", 11) == 0)
+ if (!__libc_enable_secure
+ && memcmp (&envline[3], "ORIGIN_PATH", 11) == 0)
_dl_hwcap_mask = strtoul (&envline[15], NULL, 0);
break;