From e9388fde6495c2c6bf91cacd9e92f52ae0347a83 Mon Sep 17 00:00:00 2001 From: Michael Dusan Date: Wed, 5 Jun 2024 09:53:12 -0400 Subject: [PATCH] ld.lld: fix -m option for big-endian arm/aarch64 --- src/link/Elf.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/link/Elf.zig b/src/link/Elf.zig index a1e23945ee..83a3d91346 100644 --- a/src/link/Elf.zig +++ b/src/link/Elf.zig @@ -5100,9 +5100,9 @@ fn getLDMOption(target: std.Target) ?[]const u8 { switch (target.cpu.arch) { .x86 => return "elf_i386", .aarch64 => return "aarch64linux", - .aarch64_be => return "aarch64_be_linux", + .aarch64_be => return "aarch64linuxb", .arm, .thumb => return "armelf_linux_eabi", - .armeb, .thumbeb => return "armebelf_linux_eabi", + .armeb, .thumbeb => return "armelfb_linux_eabi", .powerpc => return "elf32ppclinux", .powerpc64 => return "elf64ppc", .powerpc64le => return "elf64lppc",