blob: 67ea34345f71bc5f7e79f320de7634a9b0a3bc66 (
plain)
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
|
#pragma once
#if defined(OBJFORMAT_PEi386)
#include "ghcplatform.h"
#include "PEi386.h"
#include <stdint.h>
#include <stdio.h>
/* Some forward declares. */
struct Section;
struct SectionFormatInfo {
char* name;
size_t alignment;
COFF_reloc* relocs;
uint32_t noRelocs;
uint32_t props;
uint64_t virtualSize;
uint64_t virtualAddr;
};
struct ObjectCodeFormatInfo {
size_t secBytesTotal;
size_t secBytesUsed;
char* image;
size_t trampoline;
Section* init;
Section* finit;
COFF_HEADER_INFO* ch_info;
char* str_tab;
COFF_symbol* symbols;
};
#endif /* OBJFORMAT_PEi386. */
|