rename RTLDState enum members

This commit is contained in:
sourceturner
2026-04-20 21:35:04 +02:00
parent 110646a9da
commit ef46ff8746
2 changed files with 6 additions and 6 deletions
+4 -4
View File
@@ -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::<LinkMap>(),
r_brk: _dl_debug_state,
state: RTLDState::RT_CONSISTENT,
state: RTLDState::RtConsistent,
r_ldbase: 0,
};
+2 -2
View File
@@ -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)