@@ -38,7 +38,7 @@ const arch_bits = switch (native_arch) {
38
38
.x86 = > @import ("linux/x86.zig" ),
39
39
.x86_64 = > @import ("linux/x86_64.zig" ),
40
40
.aarch64 , .aarch64_be = > @import ("linux/arm64.zig" ),
41
- .arm , .thumb = > @import ("linux/arm-eabi.zig" ),
41
+ .arm , .armeb , . thumb, .thumbeb = > @import ("linux/arm-eabi.zig" ),
42
42
.riscv64 = > @import ("linux/riscv64.zig" ),
43
43
.sparc64 = > @import ("linux/sparc64.zig" ),
44
44
.mips , .mipsel = > @import ("linux/mips.zig" ),
@@ -103,7 +103,7 @@ pub const SYS = switch (@import("builtin").cpu.arch) {
103
103
.x86 = > syscalls .X86 ,
104
104
.x86_64 = > syscalls .X64 ,
105
105
.aarch64 , .aarch64_be = > syscalls .Arm64 ,
106
- .arm , .thumb = > syscalls .Arm ,
106
+ .arm , .armeb , . thumb, .thumbeb = > syscalls .Arm ,
107
107
.riscv64 = > syscalls .RiscV64 ,
108
108
.sparc64 = > syscalls .Sparc64 ,
109
109
.mips , .mipsel = > syscalls .Mips ,
@@ -142,7 +142,7 @@ pub const MAP = switch (native_arch) {
142
142
UNINITIALIZED : bool = false ,
143
143
_ : u5 = 0 ,
144
144
},
145
- .aarch64 , .aarch64_be , .arm , .thumb = > packed struct (u32 ) {
145
+ .aarch64 , .aarch64_be , .arm , .armeb , . thumb, .thumbeb = > packed struct (u32 ) {
146
146
TYPE : MAP_TYPE ,
147
147
FIXED : bool = false ,
148
148
ANONYMOUS : bool = false ,
@@ -290,7 +290,7 @@ pub const O = switch (native_arch) {
290
290
TMPFILE : bool = false ,
291
291
_ : u9 = 0 ,
292
292
},
293
- .aarch64 , .aarch64_be , .arm , .thumb = > packed struct (u32 ) {
293
+ .aarch64 , .aarch64_be , .arm , .armeb , . thumb, .thumbeb = > packed struct (u32 ) {
294
294
ACCMODE : ACCMODE = .RDONLY ,
295
295
_2 : u4 = 0 ,
296
296
CREAT : bool = false ,
@@ -4787,13 +4787,72 @@ pub fn CPU_COUNT(set: cpu_set_t) cpu_count_t {
4787
4787
}
4788
4788
4789
4789
pub const MINSIGSTKSZ = switch (native_arch ) {
4790
- .x86 , .x86_64 , .arm , .mipsel = > 2048 ,
4791
- .aarch64 = > 5120 ,
4790
+ .arc ,
4791
+ .arm ,
4792
+ .armeb ,
4793
+ .csky ,
4794
+ .hexagon ,
4795
+ .m68k ,
4796
+ .mips ,
4797
+ .mipsel ,
4798
+ .mips64 ,
4799
+ .mips64el ,
4800
+ .powerpc ,
4801
+ .powerpcle ,
4802
+ .riscv32 ,
4803
+ .riscv64 ,
4804
+ .s390x ,
4805
+ .thumb ,
4806
+ .thumbeb ,
4807
+ .x86 ,
4808
+ .x86_64 ,
4809
+ .xtensa ,
4810
+ = > 2048 ,
4811
+ .loongarch64 ,
4812
+ .sparc ,
4813
+ .sparcel ,
4814
+ .sparc64 ,
4815
+ = > 4096 ,
4816
+ .aarch64 ,
4817
+ .aarch64_be ,
4818
+ = > 5120 ,
4819
+ .powerpc64 ,
4820
+ .powerpc64le ,
4821
+ = > 8192 ,
4792
4822
else = > @compileError ("MINSIGSTKSZ not defined for this architecture" ),
4793
4823
};
4794
4824
pub const SIGSTKSZ = switch (native_arch ) {
4795
- .x86 , .x86_64 , .arm , .mipsel = > 8192 ,
4796
- .aarch64 = > 16384 ,
4825
+ .arc ,
4826
+ .arm ,
4827
+ .armeb ,
4828
+ .csky ,
4829
+ .hexagon ,
4830
+ .m68k ,
4831
+ .mips ,
4832
+ .mipsel ,
4833
+ .mips64 ,
4834
+ .mips64el ,
4835
+ .powerpc ,
4836
+ .powerpcle ,
4837
+ .riscv32 ,
4838
+ .riscv64 ,
4839
+ .s390x ,
4840
+ .thumb ,
4841
+ .thumbeb ,
4842
+ .x86 ,
4843
+ .x86_64 ,
4844
+ .xtensa ,
4845
+ = > 8192 ,
4846
+ .aarch64 ,
4847
+ .aarch64_be ,
4848
+ .loongarch64 ,
4849
+ .sparc ,
4850
+ .sparcel ,
4851
+ .sparc64 ,
4852
+ = > 16384 ,
4853
+ .powerpc64 ,
4854
+ .powerpc64le ,
4855
+ = > 32768 ,
4797
4856
else = > @compileError ("SIGSTKSZ not defined for this architecture" ),
4798
4857
};
4799
4858
@@ -7294,7 +7353,7 @@ pub const AUDIT = struct {
7294
7353
ARMEB = toAudit (.armeb ),
7295
7354
CSKY = toAudit (.csky ),
7296
7355
HEXAGON = @intFromEnum (std .elf .EM .HEXAGON ),
7297
- X86 = toAudit (.x86 ),
7356
+ LOONGARCH64 = toAudit (.loongarch64 ),
7298
7357
M68K = toAudit (.m68k ),
7299
7358
MIPS = toAudit (.mips ),
7300
7359
MIPSEL = toAudit (.mips ) | LE ,
@@ -7308,18 +7367,22 @@ pub const AUDIT = struct {
7308
7367
S390X = toAudit (.s390x ),
7309
7368
SPARC = toAudit (.sparc ),
7310
7369
SPARC64 = toAudit (.sparc64 ),
7370
+ X86 = toAudit (.x86 ),
7311
7371
X86_64 = toAudit (.x86_64 ),
7372
+ XTENSA = toAudit (.xtensa ),
7312
7373
7313
7374
fn toAudit (arch : std.Target.Cpu.Arch ) u32 {
7314
7375
var res : u32 = @intFromEnum (arch .toElfMachine ());
7315
7376
if (arch .endian () == .little ) res |= LE ;
7316
7377
switch (arch ) {
7317
7378
.aarch64 ,
7379
+ .loongarch64 ,
7318
7380
.mips64 ,
7319
7381
.mips64el ,
7320
7382
.powerpc64 ,
7321
7383
.powerpc64le ,
7322
7384
.riscv64 ,
7385
+ .s390x ,
7323
7386
.sparc64 ,
7324
7387
.x86_64 ,
7325
7388
= > res |= @"64BIT" ,
0 commit comments