#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
#include <string.h>
Go to the source code of this file.
#define E_IDENT 0 /* ELF header */ |
#define GET_16BE |
( |
|
off | ) |
((buf[off] << 8) + (buf[(off)+1])) |
#define PH_TYPE 0 /* ELF program header */ |
#define PUT_16BE |
( |
|
off, |
|
|
|
v |
|
) |
| |
Value:(
buf[off] = ((
v) >> 8) & 0xff,
\
buf[(off) + 1] = (
v) & 0xff)
Definition at line 63 of file addnote.c.
#define PUT_32BE |
( |
|
off, |
|
|
|
v |
|
) |
| |
Value:
PUT_16BE((off) + 2, (
v)))
Definition at line 65 of file addnote.c.
#define ROUNDUP |
( |
|
len | ) |
(((len) + 3) & ~3) |
Initial value:= {
0xffffffff,
0x02000000,
0xffffffff,
0xffffffff,
0xffffffff,
0x4000,
}
Definition at line 26 of file addnote.c.
unsigned char elf_magic[4] = { 0x7f, 'E', 'L', 'F' } |
Initial value:= {
0,
64,
0,
40,
1,
-1,
0,
1,
}
Definition at line 45 of file addnote.c.