From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lars-Peter Clausen Subject: [PATCH 2/5] asm-generic/mmu.h: Add support for FDPIC Date: Thu, 1 Nov 2012 11:24:24 +0100 Message-ID: <1351765467-29244-2-git-send-email-lars@metafoo.de> References: <1351765467-29244-1-git-send-email-lars@metafoo.de> Return-path: In-Reply-To: <1351765467-29244-1-git-send-email-lars@metafoo.de> Sender: linux-kernel-owner@vger.kernel.org To: Arnd Bergmann Cc: Mark Salter , Aurelien Jacquiot , Yoshinori Sato , Chris Zankel , Max Filippov , linux-c6x-dev@linux-c6x.org, linux-kernel@vger.kernel.org, linux-xtensa@linux-xtensa.org, linux-arch@vger.kernel.org, Lars-Peter Clausen List-Id: linux-arch.vger.kernel.org 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 --- include/asm-generic/mmu.h | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/include/asm-generic/mmu.h b/include/asm-generic/mmu.h index a67ae0a9..0ed3f1c 100644 --- a/include/asm-generic/mmu.h +++ b/include/asm-generic/mmu.h @@ -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 -- 1.7.2.5 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-out-183.synserver.de ([212.40.185.183]:1079 "EHLO smtp-out-183.synserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750977Ab2KAKal (ORCPT ); Thu, 1 Nov 2012 06:30:41 -0400 From: Lars-Peter Clausen Subject: [PATCH 2/5] asm-generic/mmu.h: Add support for FDPIC Date: Thu, 1 Nov 2012 11:24:24 +0100 Message-ID: <1351765467-29244-2-git-send-email-lars@metafoo.de> In-Reply-To: <1351765467-29244-1-git-send-email-lars@metafoo.de> References: <1351765467-29244-1-git-send-email-lars@metafoo.de> Sender: linux-arch-owner@vger.kernel.org List-ID: To: Arnd Bergmann Cc: Mark Salter , Aurelien Jacquiot , Yoshinori Sato , Chris Zankel , Max Filippov , linux-c6x-dev@linux-c6x.org, linux-kernel@vger.kernel.org, linux-xtensa@linux-xtensa.org, linux-arch@vger.kernel.org, Lars-Peter Clausen Message-ID: <20121101102424.7cK8q_HE3jAX0odf4gEA79uK1ZnKO2dX6cadycgvNZ4@z> 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 --- include/asm-generic/mmu.h | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/include/asm-generic/mmu.h b/include/asm-generic/mmu.h index a67ae0a9..0ed3f1c 100644 --- a/include/asm-generic/mmu.h +++ b/include/asm-generic/mmu.h @@ -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 -- 1.7.2.5