sectalign: "sectalign on|off" should not affect an explicit directive
[nasm.git] / rdoff / rdfload.h
blob1ca5e92d19a2e496af5fc70c5750c42fb5057cbb
1 /* rdfload.h RDOFF Object File loader library header file
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.
8 * See the file 'rdfload.c' for special license information for this
9 * file.
12 #ifndef RDOFF_RDFLOAD_H
13 #define RDOFF_RDFLOAD_H 1
15 #include "rdfutils.h"
17 typedef struct RDFModuleStruct {
18 rdffile f; /* file structure */
19 uint8_t *t, *d, *b; /* text, data, and bss segments */
20 uint32_t textrel;
21 uint32_t datarel;
22 uint32_t bssrel;
23 void *symtab;
24 } rdfmodule;
26 rdfmodule *rdfload(const char *filename);
27 int rdf_relocate(rdfmodule * m);
29 #endif