elf: Expose ELF header in compat_start_thread()
[linux-block.git] / fs / compat_binfmt_elf.c
index 2d24c765cbd7aea5440a4e386ca343b9b5eb0383..12b991368f0a5e64c3ac1ee965d70ec7421a9b60 100644 (file)
 #endif
 
 #ifdef compat_start_thread
-#undef start_thread
-#define        start_thread            compat_start_thread
+#define COMPAT_START_THREAD(ex, regs, new_ip, new_sp)  \
+       compat_start_thread(regs, new_ip, new_sp)
+#endif
+
+#ifdef COMPAT_START_THREAD
+#undef START_THREAD
+#define START_THREAD           COMPAT_START_THREAD
 #endif
 
 #ifdef compat_arch_setup_additional_pages