OpenCores
URL https://opencores.org/ocsvn/c0or1k/c0or1k/trunk

Subversion Repositories c0or1k

[/] [c0or1k/] [trunk/] [conts/] [posix/] [mm0/] [include/] [lib/] [elf/] [elfprg.h] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 drasko
/*
2
 * Definitions for ELF program headers
3
 * Based on Portable Formats Specification v1.1
4
 *
5
 * Copyright (C) 2008 Bahadir Balban
6
 */
7
#ifndef __ELFPRG_H__
8
#define __ELFPRG_H__
9
 
10
#include <l4/types.h>
11
 
12
struct elf_program_header {
13
        u32     p_type;         /* Type of segment */
14
        u32     p_offset;       /* Segment file offset */
15
        u32     p_vaddr;        /* Virtual start address */
16
        u32     p_paddr;        /* Physical start address */
17
        u32     p_filesz;       /* Size in stored file */
18
        u32     p_memsz;        /* Size in memory image */
19
        u32     p_flags;        /* Segment attributes */
20
        u32     p_align;        /* Alignment requirement */
21
} __attribute__((__packed__));
22
 
23
/* Program segment type definitions */
24
#define PT_NULL                         0
25
#define PT_LOAD                         1
26
#define PT_DYNAMIC                      2
27
#define PT_INTERP                       3
28
#define PT_NOTE                         4
29
#define PT_SHLIB                        5
30
#define PT_PHDR                         6
31
#define PT_LOPROC                       0x70000000
32
#define PT_HIPROC                       0x7FFFFFFF
33
 
34
 
35
#endif /* __ELFPRG_H__ */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.