]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
CRIS: UAPI: fix elf.h export
authorRabin Vincent <rabin@rab.in>
Fri, 27 Mar 2015 21:35:11 +0000 (22:35 +0100)
committerJesper Nilsson <jespern@axis.com>
Fri, 4 Sep 2015 22:33:25 +0000 (00:33 +0200)
CRIS userspace (uClibc for one) expects asm/elf.h to be exported but
this header appears to have gone missing at some point.  Move it to
uapi/ and export it.

Signed-off-by: Rabin Vincent <rabin@rab.in>
Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
arch/cris/include/uapi/asm/Kbuild
arch/cris/include/uapi/asm/elf.h [moved from arch/cris/include/asm/elf.h with 97% similarity]
arch/cris/include/uapi/asm/elf_v10.h [moved from arch/cris/include/arch-v10/arch/elf.h with 100% similarity]
arch/cris/include/uapi/asm/elf_v32.h [moved from arch/cris/include/arch-v32/arch/elf.h with 100% similarity]

index 8443dc81f19b2fd5435b04756192a0e91823f3bd..d5564a0ae66adc23b7c42fe31f69ad1f3ac131e6 100644 (file)
@@ -6,6 +6,9 @@ header-y += ../arch-v32/arch/
 header-y += auxvec.h
 header-y += bitsperlong.h
 header-y += byteorder.h
+header-y += elf.h
+header-y += elf_v10.h
+header-y += elf_v32.h
 header-y += errno.h
 header-y += ethernet.h
 header-y += etraxgpio.h
similarity index 97%
rename from arch/cris/include/asm/elf.h
rename to arch/cris/include/uapi/asm/elf.h
index 986adbabb581effe89b8fb7dadb3ed7e5069562b..a5df05bfee66cd7376f71d35536735de6cedb021 100644 (file)
@@ -5,7 +5,11 @@
  * ELF register definitions..
  */
 
-#include <arch/elf.h>
+#ifdef __arch_v32
+#include <asm/elf_v32.h>
+#else
+#include <asm/elf_v10.h>
+#endif
 
 #define R_CRIS_NONE             0
 #define R_CRIS_8                1