summaryrefslogtreecommitdiff
path: root/src/libmach/5obj.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libmach/5obj.c')
-rw-r--r--src/libmach/5obj.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libmach/5obj.c b/src/libmach/5obj.c
index e539362b0..57573b866 100644
--- a/src/libmach/5obj.c
+++ b/src/libmach/5obj.c
@@ -42,6 +42,7 @@ struct Addr
char type;
char sym;
char name;
+ char gotype;
};
static Addr addr(Biobuf*);
static char type2char(int);
@@ -115,6 +116,7 @@ addr(Biobuf *bp)
skip(bp,1); /* reg */
a.sym = Bgetc(bp); /* sym index */
a.name = Bgetc(bp); /* sym type */
+ a.gotype = Bgetc(bp); /* go type */
switch(a.type){
default:
case D_NONE:
@@ -124,6 +126,7 @@ addr(Biobuf *bp)
case D_FPCR:
break;
case D_REGREG:
+ case D_REGREG2:
Bgetc(bp);
break;
case D_CONST2: