amd64_win: die on extern/thread linkage

This commit is contained in:
Quentin Carbonneaux 2026-05-04 09:10:41 +02:00
parent ac48f83f17
commit de6fdc1b8c

View File

@ -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