summaryrefslogtreecommitdiff
path: root/src/cmd/5l/pass.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/5l/pass.c')
-rw-r--r--src/cmd/5l/pass.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cmd/5l/pass.c b/src/cmd/5l/pass.c
index 8bd6a5c41..31af4468f 100644
--- a/src/cmd/5l/pass.c
+++ b/src/cmd/5l/pass.c
@@ -855,7 +855,7 @@ ckoff(Sym *s, int32 v)
diag("relocation offset %ld for %s out of range", v, s->name);
}
-static Prog*
+Prog*
newdata(Sym *s, int o, int w, int t)
{
Prog *p;
@@ -871,6 +871,7 @@ newdata(Sym *s, int o, int w, int t)
p->from.offset = o;
p->to.type = D_CONST;
p->to.name = D_NONE;
+ s->data = p;
return p;
}