Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757037AbYCRBLe (ORCPT ); Mon, 17 Mar 2008 21:11:34 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754367AbYCRBJt (ORCPT ); Mon, 17 Mar 2008 21:09:49 -0400 Received: from smtp-out02.alice-dsl.net ([88.44.60.12]:40030 "EHLO smtp-out02.alice-dsl.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754368AbYCRBJl (ORCPT ); Mon, 17 Mar 2008 21:09:41 -0400 From: Andi Kleen References: <20080318209.039112899@firstfloor.org> In-Reply-To: <20080318209.039112899@firstfloor.org> To: linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: [PATCH prototype] [5/8] Add ELF constants for pbitmaps Message-Id: <20080318010939.566791B41E1@basil.firstfloor.org> Date: Tue, 18 Mar 2008 02:09:39 +0100 (CET) X-OriginalArrivalTime: 18 Mar 2008 01:03:04.0674 (UTC) FILETIME=[D21CEC20:01C88893] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1387 Lines: 46 I made up some numbers for the present bitmap phdrs and shdrs. For serious use this would probably require an allocation somewhere. Signed-off-by: Andi Kleen --- include/linux/elf.h | 4 ++++ 1 file changed, 4 insertions(+) Index: linux/include/linux/elf.h =================================================================== --- linux.orig/include/linux/elf.h +++ linux/include/linux/elf.h @@ -49,6 +49,7 @@ typedef __s64 Elf64_Sxword; #define PT_GNU_EH_FRAME 0x6474e550 #define PT_GNU_STACK (PT_LOOS + 0x474e551) +#define PT_PRESENT_BITMAP (PT_GNU_STACK + 1) /* These constants define the different elf file types */ #define ET_NONE 0 @@ -230,6 +231,8 @@ typedef struct elf64_hdr { #define PF_W 0x2 #define PF_X 0x1 +#define PF_PLEASE_LOAD_SHDRS 0x8 /* hack. checked on PT_GNU_STACK */ + typedef struct elf32_phdr{ Elf32_Word p_type; Elf32_Off p_offset; @@ -270,6 +273,7 @@ typedef struct elf64_phdr { #define SHT_HIPROC 0x7fffffff #define SHT_LOUSER 0x80000000 #define SHT_HIUSER 0xffffffff +#define SHT_PRESENT_BITMAP (SHT_LOPROC - 1000) /* sh_flags */ #define SHF_WRITE 0x1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/