Fix stack_chk_guard size on 32-bit

This commit is contained in:
Jeremy Soller
2024-01-11 09:41:17 -07:00
parent 578a7dade3
commit a8f9f64274
2 changed files with 8 additions and 0 deletions
+3
View File
@@ -6,6 +6,9 @@ style = "Type"
no_includes = true
cpp_compat = true
[defines]
"target_pointer_width=64" = "__LP64__"
[enum]
prefix_with_name = true
+5
View File
@@ -100,6 +100,11 @@ pub unsafe extern "C" fn abort() -> ! {
intrinsics::abort();
}
#[cfg(not(target_pointer_width = "64"))]
#[no_mangle]
static __stack_chk_guard: uintptr_t = 0x19fcadfe;
#[cfg(target_pointer_width = "64")]
#[no_mangle]
static __stack_chk_guard: uintptr_t = 0xd048c37519fcadfe;