pub struct CoffRelocation {
pub virtual_address: u32,
pub symbol_table_index: u32,
pub relocation_type: u16,
}Expand description
COFF 重定位项
表示需要在链接时进行地址重定位的项目。 重定位是将相对地址转换为绝对地址的过程。
Fields§
§virtual_address: u32需要重定位的虚拟地址
symbol_table_index: u32符号表索引,指向相关的符号
relocation_type: u16重定位类型,定义如何进行重定位
Implementations§
Trait Implementations§
Source§impl Clone for CoffRelocation
impl Clone for CoffRelocation
Source§fn clone(&self) -> CoffRelocation
fn clone(&self) -> CoffRelocation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CoffRelocation
impl Debug for CoffRelocation
Source§impl<'de> Deserialize<'de> for CoffRelocation
impl<'de> Deserialize<'de> for CoffRelocation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for CoffRelocation
impl Serialize for CoffRelocation
impl Copy for CoffRelocation
Auto Trait Implementations§
impl Freeze for CoffRelocation
impl RefUnwindSafe for CoffRelocation
impl Send for CoffRelocation
impl Sync for CoffRelocation
impl Unpin for CoffRelocation
impl UnwindSafe for CoffRelocation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more