Fix stack_chk_guard size on 32-bit
This commit is contained in:
@@ -6,6 +6,9 @@ style = "Type"
|
||||
no_includes = true
|
||||
cpp_compat = true
|
||||
|
||||
[defines]
|
||||
"target_pointer_width=64" = "__LP64__"
|
||||
|
||||
[enum]
|
||||
prefix_with_name = true
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user