From de6fdc1b8c41da56f4dbebfb276c5694218ea1c1 Mon Sep 17 00:00:00 2001 From: Quentin Carbonneaux Date: Mon, 4 May 2026 09:10:41 +0200 Subject: [PATCH] amd64_win: die on extern/thread linkage --- amd64/emit.c | 2 ++ 1 file changed, 2 insertions(+) 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