aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2022-06-06 13:22:28 -0700
committerMichael Forney <mforney@mforney.org>2022-06-06 13:22:28 -0700
commit7d9f23f73c96bca640e133a53813a74bdc85fe83 (patch)
tree3f3cc74ddaf409962a2af2b344c401761a858d76
parentc88c649fc658a6acf4e03999268d6546b9dad87e (diff)
Rename x86_64 target to include ABI
-rw-r--r--driver.c2
-rw-r--r--targ.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/driver.c b/driver.c
index 23de769..329dacb 100644
--- a/driver.c
+++ b/driver.c
@@ -384,7 +384,7 @@ main(int argc, char *argv[])
arrayaddbuf(&stages[LINK].cmd, linkcmd, sizeof(linkcmd));
if (hasprefix(target, "x86_64-") || hasprefix(target, "amd64-")) {
- arch = "x86_64";
+ arch = "x86_64-sysv";
qbearch = "amd64_sysv";
} else if (hasprefix(target, "aarch64-")) {
arch = "aarch64";
diff --git a/targ.c b/targ.c
index 2ffcd3e..8402b97 100644
--- a/targ.c
+++ b/targ.c
@@ -7,7 +7,7 @@ const struct target *targ;
static const struct target alltargs[] = {
{
- .name = "x86_64",
+ .name = "x86_64-sysv",
.typewchar = &typeint,
.typevalist = &(struct type){
.kind = TYPEARRAY,