File tree Expand file tree Collapse file tree
src/backend/linux_raw/param Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ use crate::backend::c;
1010use crate :: ffi:: CStr ;
1111use core:: ffi:: c_void;
1212use core:: ptr:: { null_mut, read, NonNull } ;
13+ #[ cfg( feature = "runtime" ) ]
14+ use core:: sync:: atomic:: AtomicBool ;
1315use core:: sync:: atomic:: { AtomicPtr , AtomicUsize , Ordering } ;
1416use linux_raw_sys:: elf:: * ;
1517use linux_raw_sys:: general:: {
@@ -141,7 +143,7 @@ unsafe fn init_from_auxp(mut auxp: *const Elf_auxv_t) {
141143 AT_SYSINFO_EHDR => SYSINFO_EHDR . store ( a_val. cast :: < Elf_Ehdr > ( ) , Ordering :: Relaxed ) ,
142144
143145 #[ cfg( feature = "runtime" ) ]
144- AT_SECURE => SECURE . store ( a_val != 0 , Ordering :: Relaxed ) ,
146+ AT_SECURE => SECURE . store ( a_val as usize != 0 , Ordering :: Relaxed ) ,
145147 #[ cfg( feature = "runtime" ) ]
146148 AT_PHDR => PHDR . store ( a_val. cast :: < Elf_Phdr > ( ) , Ordering :: Relaxed ) ,
147149 #[ cfg( feature = "runtime" ) ]
You can’t perform that action at this time.
0 commit comments