aboutsummaryrefslogtreecommitdiff
path: root/fs/binfmt_elf.c
diff options
context:
space:
mode:
authormspector <mspector@google.com>2017-01-18 13:16:25 -0800
committerMister Oyster <oysterized@gmail.com>2017-04-13 12:35:12 +0200
commitbc38a40815a6221528df225f5696c3ac06c01655 (patch)
tree4e22bf83ef2daf200b07d9edcd93a13a1cbf86d1 /fs/binfmt_elf.c
parentde7f7305a84663cc1683972454d248cd9fe33f48 (diff)
ANDROID: Fix for building non-arm64
This patch fixes the build break for arch=um Signed-off-by: mspector <mspector@google.com> Bug: 33689037 Change-Id: I245cd39a5ed41c884422b69720afcba7a55b42e1
Diffstat (limited to 'fs/binfmt_elf.c')
-rw-r--r--fs/binfmt_elf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/binfmt_elf.c b/fs/binfmt_elf.c
index f10ffa577..61e0e47ea 100644
--- a/fs/binfmt_elf.c
+++ b/fs/binfmt_elf.c
@@ -567,6 +567,7 @@ static unsigned long randomize_stack_top(unsigned long stack_top)
#endif
}
+#ifdef CONFIG_ARM64
#define ANDROID_NOTE_OWNER "Android"
#define ANDROID_KUSER_HELPER_TYPE 0x3L
#define ANDROID_KUSER_HELPER_ON 0x1L
@@ -652,6 +653,7 @@ static int should_call_arch_setup_additional_pages(struct linux_binprm *bprm,
return false;
}
+#endif
static int load_elf_binary(struct linux_binprm *bprm)
{