summaryrefslogtreecommitdiff
path: root/amd64
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin@c9x.me>2022-09-09 18:00:29 +0200
committerQuentin Carbonneaux <quentin@c9x.me>2022-10-08 21:48:47 +0200
commit4e90b4210edc439bf749f495855e29f711d7e99e (patch)
tree9f3b3e137f98fa65bf1c61e235d32afce4f24f7f /amd64
parent2e38c86af6c91bfb23dfb06b517a00c11fd4c1b3 (diff)
downloadroux-4e90b4210edc439bf749f495855e29f711d7e99e.tar.gz
"rel" fields become "reloc"
Diffstat (limited to 'amd64')
-rw-r--r--amd64/emit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/amd64/emit.c b/amd64/emit.c
index cf36ebe..064ee60 100644
--- a/amd64/emit.c
+++ b/amd64/emit.c
@@ -167,7 +167,7 @@ emitcon(Con *con, FILE *f)
case CAddr:
l = str(con->label);
p = l[0] == '"' ? "" : T.assym;
- if (con->rel == RelThr)
+ if (con->reloc == RelThr)
fprintf(f, "%%fs:%s%s@tpoff", p, l);
else
fprintf(f, "%s%s", p, l);
@@ -340,7 +340,7 @@ Next:
case RCon:
off = fn->con[ref.val];
emitcon(&off, f);
- if (off.type == CAddr && off.rel != RelThr)
+ if (off.type == CAddr && off.reloc != RelThr)
fprintf(f, "(%%rip)");
break;
case RTmp: