commit 1c65e2d45bdf3bfea3766c2122b4c187fb717e4d
parent 492bdeef9be770876a3c11f4d2a1202b04e02825
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Sat, 18 Jan 2025 19:53:54 +0100
libmach: Rename arch names
It is not required to add the subtype of binary format
as the architecture already marks if the arch is 32 or
64 bits. This change makes the arch names more similar
to the ones used in GNU objdump.
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/libmach/coff32/coff32archs.c b/src/libmach/coff32/coff32archs.c
@@ -6,7 +6,7 @@
#include "../libmach.h"
struct arch coff32archs[] = {
- {"coff32-i386", "\x4c\x01", OBJ(COFF32, ARCH386, LITTLE_ENDIAN), 0x0105},
- {"coff32-z80", "\x5a\x80", OBJ(COFF32, ARCHZ80, LITTLE_ENDIAN), 0x3105},
+ {"coff-i386", "\x4c\x01", OBJ(COFF32, ARCH386, LITTLE_ENDIAN), 0x0105},
+ {"coff-z80", "\x5a\x80", OBJ(COFF32, ARCHZ80, LITTLE_ENDIAN), 0x3105},
NULL,
};
diff --git a/src/libmach/elf64/elf64archs.c b/src/libmach/elf64/elf64archs.c
@@ -7,7 +7,7 @@
struct arch elf64archs[] = {
{
- .name = "elf64-amd64",
+ .name = "elf-amd64",
.mach = EM_X86_64,
.endian = ELFDATA2LSB,
.type = OBJ(ELF64, ARCHAMD64, LITTLE_ENDIAN),