Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965067AbXAWVGt (ORCPT ); Tue, 23 Jan 2007 16:06:49 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S965092AbXAWVGt (ORCPT ); Tue, 23 Jan 2007 16:06:49 -0500 Received: from 69-100-st.zelcom.ru ([80.92.100.69]:1825 "EHLO etherstorm.feelingofgreen.ru" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S965067AbXAWVGs (ORCPT ); Tue, 23 Jan 2007 16:06:48 -0500 Date: Wed, 24 Jan 2007 00:06:45 +0300 Message-ID: <874pqh8nbu.wl@betelheise.deep.net> From: Samium Gromoff <_deepfire@feelingofgreen.ru> To: Jakub Jelinek Cc: Samium Gromoff <_deepfire@feelingofgreen.ru>, Alan , linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] Define the EF_AS_NO_RANDOM e_flag bit In-Reply-To: <20070123205017.GH29911@devserv.devel.redhat.com> References: <87r6toufpp.wl@betelheise.deep.net> <200701221520.l0MFKLdK032645@turing-police.cc.vt.edu> <871wlnq7ue.wl@betelheise.deep.net> <20070123084805.GB5560@ucw.cz> <87mz4996wg.wl@betelheise.deep.net> <20070123154127.57059632@localhost.localdomain> <877ivd8p42.wl@betelheise.deep.net> <20070123205017.GH29911@devserv.devel.redhat.com> User-Agent: Wanderlust/2.15.5 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.6 Emacs/23.0.51 (i486-pc-linux-gnu) MULE/5.0 (SAKAKI) X-Face: "P-:w!.&Hdk.h~~pT`!Q%H6;/8Cce^m&%vIn"W-SXb4h88dCgwD\_}N5:\}lowY2gxg0u^wVO*L\$C@MvBDRTmh/=,468w{W{OTc$kfq5O9Y!`pd+N}SMHrN+Gs>jXe5}}EL`cRbc0^_0cZ-}M\b~55I;Qe$1uL8M`M`82<_%CQ(GwLk."M>zBLn:-u>n,$kjH`~Uo[pH`08#\G!GVMd`%7![m9]*w5PMts4@m>=;lX41Z90N MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2229 Lines: 51 At Tue, 23 Jan 2007 15:50:18 -0500, Jakub Jelinek wrote: > > On Tue, Jan 23, 2007 at 11:28:13PM +0300, Samium Gromoff wrote: > > Author: Samium Gromoff > > Date: Tue Jan 23 22:31:13 2007 +0300 > > > > Define the ELF binary header flag EF_AS_NO_RANDOM > > > > EF_AS_NO_RANDOM should mean that the binary requests to not apply > > randomisation to address spaces of its processes. > > > > diff --git a/include/linux/elf.h b/include/linux/elf.h > > index 60713e6..58ebb47 100644 > > --- a/include/linux/elf.h > > +++ b/include/linux/elf.h > > @@ -172,6 +172,8 @@ typedef struct elf64_sym { > > > > #define EI_NIDENT 16 > > > > +#define EF_AS_NO_RANDOM 0x1 /* do not randomise the address space */ > > + > > You can't make up EF_* flags this way, they are arch specific, the LSB bit > (but many others too) are already used on many architectures. > E.g.: > elf/mt.h:#define EF_MT_CPU_MRISC 0x00000001 /* default */ > elf/sparc.h:#define EF_SPARCV9_PSO 0x1 /* partial store ordering */ > elf/bfin.h:#define EF_BFIN_PIC 0x00000001 /* -fpic */ > elf/alpha.h:#define EF_ALPHA_32BIT 0x00000001 > elf/mips.h:#define EF_MIPS_NOREORDER 0x00000001 > elf/m68k.h:#define EF_M68K_CF_ISA_A_NODIV 0x01 /* ISA A except for div */ > elf/sh.h:#define EF_SH1 1 > elf/arm.h:#define EF_ARM_RELEXEC 0x01 > elf/cris.h:#define EF_CRIS_UNDERSCORE 0x00000001 > elf/ia64.h:#define EF_IA_64_TRAPNIL (1 << 0) /* Trap NIL pointer dereferences. */ > elf/vax.h:#define EF_VAX_NONPIC 0x0001 /* Object contains non-PIC code */ > elf/iq2000.h:#define EF_IQ2000_CPU_IQ2000 0x00000001 /* default */ > elf/frv.h:#define EF_FRV_GPR_32 0x00000001 /* -mgpr-32 */ > to name just a few. Should we introduce per-arch asm/elf.h files to hold the relevant flag definitions then? > Jakub regards, Samium Gromoff - 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/