From 00a30954aca97004cb6f586bdeeabb488f1e3c3f Mon Sep 17 00:00:00 2001 From: Quentin Carbonneaux Date: Fri, 9 Sep 2022 17:40:31 +0200 Subject: add support for thread-local storage The apple targets are not done yet. --- all.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'all.h') diff --git a/all.h b/all.h index 0d0bee6..14ebf68 100644 --- a/all.h +++ b/all.h @@ -324,8 +324,11 @@ struct Con { double d; float s; } bits; + enum { + RelDef, + RelThr, + } rel; char flt; /* 1 to print as s, 2 to print as d */ - char local; }; typedef struct Addr Addr; @@ -339,6 +342,7 @@ struct Addr { /* amd64 addressing */ struct Lnk { char export; + char thread; char align; char *sec; char *secf; @@ -536,7 +540,7 @@ void spill(Fn *); void rega(Fn *); /* emit.c */ -void emitlnk(char *, Lnk *, char *, FILE *); +void emitfnlnk(char *, Lnk *, FILE *); void emitdat(Dat *, FILE *); int stashbits(void *, int); void elf_emitfnfin(char *, FILE *); -- cgit 1.4.1