blob: 573467b7cff24c2b1593a99e52c816c988510481 (
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
|
#pragma once
#if defined(OBJFORMAT_PEi386)
#include "ghcplatform.h"
#include "PEi386.h"
#include "linker/InitFini.h"
#include <stdint.h>
#include <stdio.h>
struct SectionFormatInfo {
char* name;
size_t alignment;
COFF_reloc* relocs;
uint32_t noRelocs;
uint32_t props;
uint64_t virtualSize;
uint64_t virtualAddr;
};
struct ObjectCodeFormatInfo {
struct InitFiniList* init; // Freed by ocRunInit_PEi386
struct InitFiniList* fini; // Freed by ocRunFini_PEi386
Section* pdata;
Section* xdata;
COFF_HEADER_INFO* ch_info; // Freed by ocResolve_PEi386
COFF_symbol* symbols; // Freed by ocResolve_PEi386
char* str_tab;
};
#endif /* OBJFORMAT_PEi386. */
|