Add definitions for the ELF section attribute flags, SHF_*.
Submitted by: Robert Nordier <rnordier@nordier.com>
This commit is contained in:
parent
8aa2558802
commit
e17ade2b82
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=38954
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user