[Feature][ZXW-265]merge P56U03 version
Only Configure: No
Affected branch: master
Affected module: unknow
Is it affected on both ZXIC and MTK: only ZXIC
Self-test: Yes
Doc Update: No
Change-Id: I873f6df64e2605a77b8b8bfec35b21e7f33c5444
diff --git a/ap/libc/glibc/glibc-2.23/elf/rtld.c b/ap/libc/glibc/glibc-2.23/elf/rtld.c
old mode 100644
new mode 100755
index 647661c..101ffb9
--- a/ap/libc/glibc/glibc-2.23/elf/rtld.c
+++ b/ap/libc/glibc/glibc-2.23/elf/rtld.c
@@ -2437,7 +2437,8 @@
case 12:
/* The library search path. */
- if (memcmp (envline, "LIBRARY_PATH", 12) == 0)
+ if (!__libc_enable_secure
+ && memcmp (envline, "LIBRARY_PATH", 12) == 0)
{
library_path = &envline[13];
break;