diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2004-10-10 15:02:19 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2004-10-10 15:02:19 +0000 |
commit | 49e54e4a7c98aef3d912cadafc871368b98c938b (patch) | |
tree | e3c0e805296a00a403193cdd10b032e6c9825dcc | |
parent | 56c775d058f1d2564fe2b5869d22ea4e96558d6d (diff) |
Add PT_LOOS, PT_HIOS and Elf_Half.
ok drahn@
-rw-r--r-- | share/man/man5/elf.5 | 10 | ||||
-rw-r--r-- | sys/sys/exec_elf.h | 6 |
2 files changed, 14 insertions, 2 deletions
diff --git a/share/man/man5/elf.5 b/share/man/man5/elf.5 index 378dfacc192..cbd217c9723 100644 --- a/share/man/man5/elf.5 +++ b/share/man/man5/elf.5 @@ -1,4 +1,4 @@ -.\" $OpenBSD: elf.5,v 1.13 2004/10/08 19:53:49 kettenis Exp $ +.\" $OpenBSD: elf.5,v 1.14 2004/10/10 15:02:18 kettenis Exp $ .\"Copyright (c) 1999 Jeroen Ruigrok van der Werven .\"All rights reserved. .\" @@ -528,6 +528,14 @@ Moreover, it may only occur if the program header table is part of the memory image of the program. If it is present, it must precede any loadable segment entry. +.It Dv PT_LOOS +This value up to and including +.Sy PT_HIOS +is reserverd for operating system-specific semantics. +.It Dv PT_HIOS +This value down to and including +.Sy PT_LOOS +is reserved for operating system-specific semantics. .It Dv PT_LOPROC This value up to and including .Sy PT_HIPROC diff --git a/sys/sys/exec_elf.h b/sys/sys/exec_elf.h index a936e15d087..a2974761461 100644 --- a/sys/sys/exec_elf.h +++ b/sys/sys/exec_elf.h @@ -1,4 +1,4 @@ -/* $OpenBSD: exec_elf.h,v 1.39 2004/02/27 17:36:16 deraadt Exp $ */ +/* $OpenBSD: exec_elf.h,v 1.40 2004/10/10 15:02:18 kettenis Exp $ */ /* * Copyright (c) 1995, 1996 Erik Theisen. All rights reserved. * @@ -401,6 +401,8 @@ typedef struct { #define PT_SHLIB 5 /* reserved - purpose undefined */ #define PT_PHDR 6 /* program header */ #define PT_NUM 7 /* Number of segment types */ +#define PT_LOOS 0x60000000 /* reserved range for OS */ +#define PT_HIOS 0x6fffffff /* specific segment types */ #define PT_LOPROC 0x70000000 /* reserved range for processor */ #define PT_HIPROC 0x7fffffff /* specific segment types */ @@ -546,6 +548,7 @@ struct elf_args { #define Elf_Rel Elf32_Rel #define Elf_RelA Elf32_Rela #define Elf_Dyn Elf32_Dyn +#define Elf_Half Elf32_Half #define Elf_Word Elf32_Word #define Elf_Sword Elf32_Sword #define Elf_Addr Elf32_Addr @@ -571,6 +574,7 @@ struct elf_args { #define Elf_Rel Elf64_Rel #define Elf_RelA Elf64_Rela #define Elf_Dyn Elf64_Dyn +#define Elf_Half Elf64_Half #define Elf_Word Elf64_Word #define Elf_Sword Elf64_Sword #define Elf_Addr Elf64_Addr |