mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-12-27 09:29:06 +08:00
8dc965347d
We already have abort-on-error memory allocation and I/O operations in nasmlib, so use them for rdoff as well. Delete long-since-obsolete rdoff Mkfiles directory. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
30 lines
766 B
C
30 lines
766 B
C
/* 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 license given in the file "LICENSE"
|
|
* 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
|
|
|
|
#include "rdfutils.h"
|
|
|
|
typedef struct RDFModuleStruct {
|
|
rdffile f; /* file structure */
|
|
uint8_t *t, *d, *b; /* text, data, and bss segments */
|
|
uint32_t textrel;
|
|
uint32_t datarel;
|
|
uint32_t bssrel;
|
|
void *symtab;
|
|
} rdfmodule;
|
|
|
|
rdfmodule *rdfload(const char *filename);
|
|
int rdf_relocate(rdfmodule * m);
|
|
|
|
#endif
|