rdfload.h 766 B

1234567891011121314151617181920212223242526272829
  1. /* rdfload.h RDOFF Object File loader library header file
  2. *
  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.
  7. *
  8. * See the file 'rdfload.c' for special license information for this
  9. * file.
  10. */
  11. #ifndef RDOFF_RDFLOAD_H
  12. #define RDOFF_RDFLOAD_H 1
  13. #include "rdfutils.h"
  14. typedef struct RDFModuleStruct {
  15. rdffile f; /* file structure */
  16. uint8_t *t, *d, *b; /* text, data, and bss segments */
  17. uint32_t textrel;
  18. uint32_t datarel;
  19. uint32_t bssrel;
  20. void *symtab;
  21. } rdfmodule;
  22. rdfmodule *rdfload(const char *filename);
  23. int rdf_relocate(rdfmodule * m);
  24. #endif