asm-generic/mmu.h: Add support for FDPIC
authorLars-Peter Clausen <lars@metafoo.de>
Sat, 1 Dec 2012 13:24:41 +0000 (14:24 +0100)
committerArnd Bergmann <arnd@arndb.de>
Sun, 9 Dec 2012 22:14:14 +0000 (23:14 +0100)
No-MMU architectures often have support for FDPIC binaries. FDPIC support
requires two additional fields in the mm_context_t struct. This patch adds these
fields to the generic mm_context_t definition if support for FDPIC binaries is
enabled. This allows to use the generic mmu.h for a few more architectures.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
include/asm-generic/mmu.h

index a67ae0a91599a50d3f33346b7be8dbe97c4ac0e2..0ed3f1cfb85444443566ca46ca6ceb7e15d3e017 100644 (file)
@@ -8,6 +8,11 @@
 #ifndef __ASSEMBLY__
 typedef struct {
        unsigned long           end_brk;
+
+#ifdef CONFIG_BINFMT_ELF_FDPIC
+       unsigned long           exec_fdpic_loadmap;
+       unsigned long           interp_fdpic_loadmap;
+#endif
 } mm_context_t;
 #endif