diff --git a/src/ld_so/debug.rs b/src/ld_so/debug.rs index 72118876ff..784fb339e3 100644 --- a/src/ld_so/debug.rs +++ b/src/ld_so/debug.rs @@ -5,11 +5,11 @@ use core::ptr; #[repr(C)] pub enum RTLDState { /// Mapping change is complete. - RT_CONSISTENT, + RtConsistent, /// Beginning to add a new object. - RT_ADD, + RtAdd, /// Beginning to remove an object mapping. - RT_DELETE, + RtDelete, } /// Data structure for sharing debugging information from the @@ -41,7 +41,7 @@ impl RTLDDebug { r_version: 1, r_map: ptr::null_mut::(), r_brk: _dl_debug_state, - state: RTLDState::RT_CONSISTENT, + state: RTLDState::RtConsistent, r_ldbase: 0, }; diff --git a/src/ld_so/linker.rs b/src/ld_so/linker.rs index 96b79ed1c1..4a01b0d9b1 100644 --- a/src/ld_so/linker.rs +++ b/src/ld_so/linker.rs @@ -625,7 +625,7 @@ impl Linker { Resolve::Now }; - _r_debug.lock().state = RTLDState::RT_ADD; + _r_debug.lock().state = RTLDState::RtAdd; _dl_debug_state(); let mut new_objects = Vec::new(); @@ -758,7 +758,7 @@ impl Linker { self.register_object(obj); } - _r_debug.lock().state = RTLDState::RT_CONSISTENT; + _r_debug.lock().state = RTLDState::RtConsistent; _dl_debug_state(); Ok(loaded_dso)