aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/obj.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/obj.h')
-rw-r--r--src/obj.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/obj.h b/src/obj.h
index b421b3f..0dd6f2d 100644
--- a/src/obj.h
+++ b/src/obj.h
@@ -1,13 +1,13 @@
#include "antcc.h"
-extern struct objfile {
+typedef struct ObjFile {
const char *infile, *outfile;
uchar *textbegin, *textend;
uchar *code;
uchar dataalign, rodataalign, bssalign;
uint nbss;
vec_of(uchar) data, rodata;
-} objout;
+} ObjFile;
enum relockind {
REL_ABS64,
@@ -26,6 +26,7 @@ enum relockind {
};
enum section { Snone, Stext, Srodata, Sdata, Sbss };
+extern ObjFile objout;
void objini(const char *infile, const char *outfile);
void objdeffunc(internstr nam, bool globl, uint off, uint siz);
enum section objhassym(internstr name, uint *off);