aboutsummaryrefslogtreecommitdiff
path: root/parse.c
diff options
context:
space:
mode:
authorQuentin Carbonneaux <[email protected]>2024-04-12 11:32:36 +0200
committerQuentin Carbonneaux <[email protected]>2024-04-12 11:33:58 +0200
commit8ded7a56a2d7f1922b4f58a953f9ac37aa8be737 (patch)
tree863aa56ca7b0b35cf33539ae82960db75c27fe20 /parse.c
parent4a809d69b5647aabc8f6a9e22e0bc889f9c779ed (diff)
add common linkage for data
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/parse.c b/parse.c
index db861bf..a909b7d 100644
--- a/parse.c
+++ b/parse.c
@@ -48,6 +48,7 @@ enum Token {
Thlt,
Texport,
Tthread,
+ Tcommon,
Tfunc,
Ttype,
Tdata,
@@ -106,6 +107,7 @@ static char *kwmap[Ntok] = {
[Thlt] = "hlt",
[Texport] = "export",
[Tthread] = "thread",
+ [Tcommon] = "common",
[Tfunc] = "function",
[Ttype] = "type",
[Tdata] = "data",
@@ -132,7 +134,7 @@ enum {
TMask = 16383, /* for temps hash */
BMask = 8191, /* for blocks hash */
- K = 9583425, /* found using tools/lexh.c */
+ K = 11183273, /* found using tools/lexh.c */
M = 23,
};
@@ -1159,6 +1161,9 @@ parselnk(Lnk *lnk)
case Tthread:
lnk->thread = 1;
break;
+ case Tcommon:
+ lnk->common = 1;
+ break;
case Tsection:
if (lnk->sec)
err("only one section allowed");