summaryrefslogtreecommitdiff
path: root/rts/linker/PEi386Types.h
blob: ec53ec800bceb9cdd56b1e52975297c28defe8bc (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 <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 {
    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.  */