summaryrefslogtreecommitdiff
path: root/rdoff/rdfload.h
diff options
context:
space:
mode:
authorHyungKyu Song <hk76.song@samsung.com>2013-02-16 00:52:20 +0900
committerHyungKyu Song <hk76.song@samsung.com>2013-02-16 00:52:20 +0900
commite6c15f0e49b4ea41b5c5eb36457db0127ec901fc (patch)
tree996be9095a97ff2aac0d98963b6044d47a0ec60c /rdoff/rdfload.h
parent65c26d26fb72cec0d43d199c72ed27513d17f4c9 (diff)
downloadnasm-tizen_2.0.tar.gz
nasm-tizen_2.0.tar.bz2
nasm-tizen_2.0.zip
Diffstat (limited to 'rdoff/rdfload.h')
-rw-r--r--rdoff/rdfload.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/rdoff/rdfload.h b/rdoff/rdfload.h
new file mode 100644
index 0000000..87d7ecc
--- /dev/null
+++ b/rdoff/rdfload.h
@@ -0,0 +1,31 @@
+/* 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