Skip to content
Snippets Groups Projects
Verified Commit afb5094c authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Add triple underscore tls_get_addr for x86

parent abe30ba8
No related branches found
No related tags found
No related merge requests found
......@@ -38,3 +38,10 @@ pub unsafe extern "C" fn __tls_get_addr(ti: *mut dl_tls_index) -> *mut c_void {
(*ti).ti_offset
);
}
// x86 can define a version that does not require stack alignment
#[cfg(target_arch = "x86")]
#[no_mangle]
pub unsafe extern "C" fn ___tls_get_addr(ti: *mut dl_tls_index) -> *mut c_void {
__tls_get_addr(ti)
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment