aboutsummaryrefslogtreecommitdiffstats
path: root/rdoff/rdfload.h
blob: 11c34f39417ae0c01a1133f1a3d2581b0f9efd0e (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
/* rdfload.h	RDOFF Object File loader library header file
 *
 * The Netwide Assembler is copyright (C) 1996 Simon Tatham and
 * Julian Hall. All rights reserved. The software is
 * redistributable under the licence given in the file "Licence"
 * distributed in the NASM archive.
 *
 * See the file 'rdfload.c' for special license information for this
 * file.
 */

#ifndef _RDFLOAD_H
#define _RDFLOAD_H

#define RDOFF_UTILS

#include "rdoff.h"

typedef struct RDFModuleStruct {
    rdffile f;                  /* file structure */
    uint8_t *t, *d, *b;   /* text, data, and bss segments */
    int32_t textrel;
    int32_t datarel;
    int32_t bssrel;
    void *symtab;
} rdfmodule;

rdfmodule *rdfload(const int8_t *filename);
int rdf_relocate(rdfmodule * m);

#endif