-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathutilsGD.h
37 lines (33 loc) · 1.06 KB
/
utilsGD.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
* =====================================================================================
*
* Filename: utilsGD.h
*
* Description:
*
* Version: 1.0
* Created: 03/09/2014 08:26:19 PM
* Revision: none
* Compiler: gcc
*
* Author: YOUR NAME (),
* Organization:
*
* =====================================================================================
*/
#ifndef UTILSGD_H
#define UTILSGD_H
#include <elf.h>
Elf32_Phdr Program_HeadersGD[] = {
{PT_PHDR, 0, 0, 0, 0, 0, PF_R | PF_X, 0x4},
{PT_INTERP, 0, 0, 0, 0, 0, PF_R, 0x1},
{PT_LOAD, 0, 0, 0, 0, 0, PF_R | PF_X, 0x1000},
{PT_LOAD, 0, 0, 0, 0, 0, PF_R | PF_W, 0x1000},
{PT_DYNAMIC, 0, 0, 0, 0, 0, PF_R | PF_W, 0x4},
{PT_NOTE, 0, 0, 0, 0, 0, PF_R, 0x4},
{PT_GNU_STACK, 0, 0, 0, 0, 0, PF_R | PF_W, 0x10}
};
unsigned char e_identGD[] = {
0x7f, 0x45, 0x4c, 0x46, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
};
#endif