diff --git a/amd64/emit.c b/amd64/emit.c index 3398f7a..7d3c3ea 100644 --- a/amd64/emit.c +++ b/amd64/emit.c @@ -544,6 +544,8 @@ emitins(Ins i, E *e) regtoa(i.to.val, SLong)); break; } + if (T.windows && con->sym.type != SGlo) + die("extern/thread unsupported on amd64_win"); switch (con->sym.type) { case SThr: /* derive the symbol address from the TCB