nasm/rdoff/rdfload.h

32 lines
781 B
C
Raw Normal View History

2002-05-01 04:51:32 +08:00
/* 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 RDOFF_RDFLOAD_H
#define RDOFF_RDFLOAD_H 1
2002-05-01 04:51:32 +08:00
#define RDOFF_UTILS
2002-05-01 04:51:32 +08:00
#include "rdoff.h"
typedef struct RDFModuleStruct {
2005-01-16 06:15:51 +08:00
rdffile f; /* file structure */
uint8_t *t, *d, *b; /* text, data, and bss segments */
int32_t textrel;
int32_t datarel;
int32_t bssrel;
2005-01-16 06:15:51 +08:00
void *symtab;
2002-05-01 04:51:32 +08:00
} rdfmodule;
rdfmodule *rdfload(const char *filename);
2002-05-01 04:51:32 +08:00
int rdf_relocate(rdfmodule * m);
#endif