summaryrefslogtreecommitdiff
path: root/utils/mcpu-object.h
diff options
context:
space:
mode:
Diffstat (limited to 'utils/mcpu-object.h')
-rw-r--r--utils/mcpu-object.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/utils/mcpu-object.h b/utils/mcpu-object.h
new file mode 100644
index 0000000..3af938a
--- /dev/null
+++ b/utils/mcpu-object.h
@@ -0,0 +1,12 @@
+#ifndef __CPU_OBJECT_H
+#define __CPU_OBJECT_H
+
+#include "mcpu-asm.h"
+
+/* MELF ET_REL reader/writer. */
+int cpu_object_write( const char *path, const cpu_asm_object *o, char *err, size_t errsz );
+int cpu_object_read( const char *path, cpu_asm_object *o, char *err, size_t errsz );
+int cpu_object_read_data( const void *data, size_t size, cpu_asm_object *o,
+ char *err, size_t errsz );
+
+#endif