From d91fc542e2ddf714cf31bcb95ee063f2b4c34ddf Mon Sep 17 00:00:00 2001 From: jdp Date: Tue, 8 Sep 1998 20:38:06 +0000 Subject: Add definitions for the ELF section attribute flags, SHF_*. Submitted by: Robert Nordier --- sys/sys/elf_common.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'sys') diff --git a/sys/sys/elf_common.h b/sys/sys/elf_common.h index 179c819..e9f846a 100644 --- a/sys/sys/elf_common.h +++ b/sys/sys/elf_common.h @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: elf_common.h,v 1.1 1998/08/16 03:03:38 jdp Exp $ */ #ifndef _SYS_ELF_COMMON_H_ @@ -123,6 +123,12 @@ #define SHT_LOUSER 0x80000000 /* reserved range for application */ #define SHT_HIUSER 0xffffffff /* specific indexes */ +/* Flags for sh_flags. */ +#define SHF_WRITE 0x1 /* Section contains writable data. */ +#define SHF_ALLOC 0x2 /* Section occupies memory. */ +#define SHF_EXECINSTR 0x4 /* Section contains instructions. */ +#define SHF_MASKPROC 0xf0000000 /* Reserved for processor-specific. */ + /* Values for p_type. */ #define PT_NULL 0 /* Unused entry. */ #define PT_LOAD 1 /* Loadable segment. */ -- cgit v1.1