diff options
Diffstat (limited to 'src/cmd/6l/asm.c')
-rw-r--r-- | src/cmd/6l/asm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cmd/6l/asm.c b/src/cmd/6l/asm.c index fec8fd0e1..68e7ec54c 100644 --- a/src/cmd/6l/asm.c +++ b/src/cmd/6l/asm.c @@ -708,6 +708,8 @@ datblk(int32 s, int32 n) if(p->to.sym) { if(p->to.sym->type == SUNDEF) ckoff(p->to.sym, o); + if(p->to.sym->type == Sxxx) + diag("missing symbol %s", p->to.sym->name); o += p->to.sym->value; if(p->to.sym->type != STEXT && p->to.sym->type != SUNDEF) o += INITDAT; |