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
|
2007-12-29 22:44:23 +08:00
|
|
|
* redistributable under the license given in the file "LICENSE"
|
2002-05-01 04:51:32 +08:00
|
|
|
* distributed in the NASM archive.
|
|
|
|
*
|
|
|
|
* See the file 'rdfload.c' for special license information for this
|
|
|
|
* file.
|
|
|
|
*/
|
|
|
|
|
2007-04-13 00:54:50 +08:00
|
|
|
#ifndef RDOFF_RDFLOAD_H
|
|
|
|
#define RDOFF_RDFLOAD_H 1
|
2002-05-01 04:51:32 +08:00
|
|
|
|
2017-04-18 04:52:19 +08:00
|
|
|
#include "rdfutils.h"
|
2002-05-01 04:51:32 +08:00
|
|
|
|
|
|
|
typedef struct RDFModuleStruct {
|
2005-01-16 06:15:51 +08:00
|
|
|
rdffile f; /* file structure */
|
2007-04-12 10:40:54 +08:00
|
|
|
uint8_t *t, *d, *b; /* text, data, and bss segments */
|
2009-07-04 06:28:45 +08:00
|
|
|
uint32_t textrel;
|
|
|
|
uint32_t datarel;
|
|
|
|
uint32_t bssrel;
|
2005-01-16 06:15:51 +08:00
|
|
|
void *symtab;
|
2002-05-01 04:51:32 +08:00
|
|
|
} rdfmodule;
|
|
|
|
|
2007-04-14 00:47:53 +08:00
|
|
|
rdfmodule *rdfload(const char *filename);
|
2002-05-01 04:51:32 +08:00
|
|
|
int rdf_relocate(rdfmodule * m);
|
|
|
|
|
|
|
|
#endif
|