Created
February 12, 2015 07:27
-
-
Save whitequark/ad704d48a86d889b8cdb to your computer and use it in GitHub Desktop.
allow qemu-arm-user to run bionic-based applications
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/linux-user/elfload.c 2014-12-09 17:45:42.000000000 +0300 | |
+++ b/linux-user/elfload.c 2015-02-12 10:25:38.477985307 +0300 | |
@@ -1227,7 +1227,7 @@ | |
#define TARGET_ELF_PAGESTART(_v) ((_v) & ~(unsigned long)(TARGET_ELF_EXEC_PAGESIZE-1)) | |
#define TARGET_ELF_PAGEOFFSET(_v) ((_v) & (TARGET_ELF_EXEC_PAGESIZE-1)) | |
-#define DLINFO_ITEMS 14 | |
+#define DLINFO_ITEMS 15 | |
static inline void memcpy_fromfs(void * to, const void * from, unsigned long n) | |
{ | |
@@ -1592,6 +1592,7 @@ | |
NEW_AUX_ENT(AT_HWCAP, (abi_ulong) ELF_HWCAP); | |
NEW_AUX_ENT(AT_CLKTCK, (abi_ulong) sysconf(_SC_CLK_TCK)); | |
NEW_AUX_ENT(AT_RANDOM, (abi_ulong) u_rand_bytes); | |
+ NEW_AUX_ENT(AT_SECURE, (abi_ulong) 0); | |
#ifdef ELF_HWCAP2 | |
NEW_AUX_ENT(AT_HWCAP2, (abi_ulong) ELF_HWCAP2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment