regularized spelling of license to match name of LICENSE file
[platform/upstream/nasm.git] / rdoff / rdfload.h
1 /* rdfload.h    RDOFF Object File loader library header file
2  *
3  * The Netwide Assembler is copyright (C) 1996 Simon Tatham and
4  * Julian Hall. All rights reserved. The software is
5  * redistributable under the license given in the file "LICENSE"
6  * distributed in the NASM archive.
7  *
8  * See the file 'rdfload.c' for special license information for this
9  * file.
10  */
11
12 #ifndef RDOFF_RDFLOAD_H
13 #define RDOFF_RDFLOAD_H 1
14
15 #define RDOFF_UTILS
16
17 #include "rdoff.h"
18
19 typedef struct RDFModuleStruct {
20     rdffile f;                  /* file structure */
21     uint8_t *t, *d, *b;   /* text, data, and bss segments */
22     int32_t textrel;
23     int32_t datarel;
24     int32_t bssrel;
25     void *symtab;
26 } rdfmodule;
27
28 rdfmodule *rdfload(const char *filename);
29 int rdf_relocate(rdfmodule * m);
30
31 #endif