authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-07-30 02:56:29+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-08-01 20:58:08+02:00
loga9c78185120fd1dd731c00f1bd961f0b2e2b2c83
tree212914525846c0b7dfd3a04f4fae1021216c0ae8
parent5cd92a6b51f37d91a5063c5ee36167e96f030526
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

start: Fix an isARM() check to use isArmOrThumb() instead.


1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/start.zig+1-1
......@@ -495,7 +495,7 @@ fn posixCallMainAndExit(argc_argv_ptr: [*]usize) callconv(.C) noreturn {
495495 // ARMv6 targets (and earlier) have no support for TLS in hardware.
496496 // FIXME: Elide the check for targets >= ARMv7 when the target feature API
497497 // becomes less verbose (and more usable).
498 if (comptime native_arch.isARM()) {
498 if (comptime native_arch.isArmOrThumb()) {
499499 if (at_hwcap & std.os.linux.HWCAP.TLS == 0) {
500500 // FIXME: Make __aeabi_read_tp call the kernel helper kuser_get_tls
501501 // For the time being use a simple trap instead of a @panic call to