aboutsummaryrefslogtreecommitdiff
path: root/lib/std/elf.zig
diff options
context:
space:
mode:
authorKoakuma <koachan@protonmail.com>2022-05-13 22:59:06 +0700
committerAndrew Kelley <andrew@ziglang.org>2022-05-13 16:43:59 -0400
commitfb0692334ed64a995690c21525fc3e729e63f424 (patch)
tree1a7a8f2617bf890c66ba965a6cc49352b9c48629 /lib/std/elf.zig
parentaceb7e18bd1eb25affe8118e01e066c9e6bb0c04 (diff)
downloadzig-fb0692334ed64a995690c21525fc3e729e63f424.tar.gz
zig-fb0692334ed64a995690c21525fc3e729e63f424.zip
target: Rename sparcv9 -> sparc64
Rename all references of sparcv9 to sparc64, to make Zig align more with other projects. Also, added new function to convert glibc arch name to Zig arch name, since it refers to the architecture as sparcv9. This is based on the suggestion by @kubkon in PR 11847. (https://github.com/ziglang/zig/pull/11487#pullrequestreview-963761757)
Diffstat (limited to 'lib/std/elf.zig')
-rw-r--r--lib/std/elf.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/elf.zig b/lib/std/elf.zig
index 2ea928f891..d80ae2f6a0 100644
--- a/lib/std/elf.zig
+++ b/lib/std/elf.zig
@@ -1511,7 +1511,7 @@ pub const EM = enum(u16) {
.RISCV => .riscv64,
.X86_64 => .x86_64,
.BPF => .bpfel,
- .SPARCV9 => .sparcv9,
+ .SPARCV9 => .sparc64,
.S390 => .s390x,
.SPU_2 => .spu_2,
// there's many cases we don't (yet) handle, or will never have a