view nasmbuild/nasm-2.13rc9/rdoff/rdfload.h @ 10971:0b7c2ac84f2e

<oerjan> revert
author HackBot
date Mon, 29 May 2017 08:09:08 +0000
parents 587a0a262d22
children
line wrap: on
line source

/* 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

#define RDOFF_UTILS

#include "rdoff.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