From 24bcc929477751b056e81e7772dc2bb3d11ce4a5 Mon Sep 17 00:00:00 2001 From: lemon Date: Fri, 12 Dec 2025 17:40:35 +0100 Subject: s/amd64/x86_64/ --- obj/elf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'obj') diff --git a/obj/elf.c b/obj/elf.c index 8defab8..ae841d6 100644 --- a/obj/elf.c +++ b/obj/elf.c @@ -43,7 +43,7 @@ elfinit(void) hdr.i_abiversion = 0; hdr.h32.type = ET_REL; switch (targ_mcisa) { - case ISamd64: hdr.h32.machine = EM_X86_64; break; + case ISx86_64: hdr.h32.machine = EM_X86_64; break; } hdr.h32.version = ELFVERSION; if (targ_64bit) { @@ -127,7 +127,7 @@ elfaddsym(const char *nam, int info, enum section sect, uvlong value, uvlong siz } static const ushort relktab[][NRELOCKIND] = { - [ISamd64] = { + [ISx86_64] = { [REL_ABS64] = 1, /* R_X86_64_64 */ [REL_ABS32] = 10, /* R_X86_64_32 */ [REL_ABS32S] = 11, /* R_X86_64_32S */ @@ -356,7 +356,7 @@ wordalign(struct wbuf *out, int align) while (off++ & (align - 1)) ioputc(out, 0); } -static const bool userelatab[] = { [ISamd64] = 1 }; +static const bool userelatab[] = { [ISx86_64] = 1 }; void elffini(struct wbuf *out) -- cgit v1.2.3