Merge tag 'docs-5.15' of git://git.lwn.net/linux
[linux-2.6-microblaze.git] / arch / arm64 / include / asm / elf.h
index 8d1c8dc..97932fb 100644 (file)
@@ -213,10 +213,8 @@ typedef compat_elf_greg_t          compat_elf_gregset_t[COMPAT_ELF_NGREG];
 
 /* AArch32 EABI. */
 #define EF_ARM_EABI_MASK               0xff000000
-#define compat_elf_check_arch(x)       (system_supports_32bit_el0() && \
-                                        ((x)->e_machine == EM_ARM) && \
-                                        ((x)->e_flags & EF_ARM_EABI_MASK))
-
+int compat_elf_check_arch(const struct elf32_hdr *);
+#define compat_elf_check_arch          compat_elf_check_arch
 #define compat_start_thread            compat_start_thread
 /*
  * Unlike the native SET_PERSONALITY macro, the compat version maintains