瀏覽代碼

CRIS: UAPI: fix elf.h export

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>
Rabin Vincent 10 年之前
父節點
當前提交
2493d3e28a

+ 3 - 0
arch/cris/include/uapi/asm/Kbuild

@@ -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

+ 5 - 1
arch/cris/include/asm/elf.h → arch/cris/include/uapi/asm/elf.h

@@ -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

+ 0 - 0
arch/cris/include/arch-v10/arch/elf.h → arch/cris/include/uapi/asm/elf_v10.h


+ 0 - 0
arch/cris/include/arch-v32/arch/elf.h → arch/cris/include/uapi/asm/elf_v32.h