librasan: Fix errno_location function name (#3172)

This commit is contained in:
Wim de With 2025-04-25 23:08:30 +02:00 committed by GitHub
parent c3475cd577
commit 977189174b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ struct FunctionErrnoLocation;
impl Function for FunctionErrnoLocation {
type Func = unsafe extern "C" fn() -> *mut c_int;
const NAME: &'static CStr = c"errno_location";
const NAME: &'static CStr = c"__errno_location";
}
static OPEN_ADDR: AtomicGuestAddr = AtomicGuestAddr::new();

View File

@ -55,7 +55,7 @@ struct FunctionErrnoLocation;
impl Function for FunctionErrnoLocation {
type Func = unsafe extern "C" fn() -> *mut c_int;
const NAME: &'static CStr = c"errno_location";
const NAME: &'static CStr = c"__errno_location";
}
#[derive(Debug)]