binemit: add PIC relocation types for Intel
This commit is contained in:
committed by
Jakob Stoklund Olesen
parent
90bc798e4f
commit
5834520bfe
@@ -28,6 +28,10 @@ pub enum Reloc {
|
||||
IntelAbs4,
|
||||
/// Intel absolute 8-byte
|
||||
IntelAbs8,
|
||||
/// Intel GOT PC-relative 4-byte
|
||||
IntelGotPCRel4,
|
||||
/// Intel PLT-relative 4-byte
|
||||
IntelPLTRel4,
|
||||
/// Arm32 call target
|
||||
Arm32Call,
|
||||
/// Arm64 call target
|
||||
@@ -44,6 +48,8 @@ impl fmt::Display for Reloc {
|
||||
Reloc::IntelPCRel4 => write!(f, "{}", "PCRel4"),
|
||||
Reloc::IntelAbs4 => write!(f, "{}", "Abs4"),
|
||||
Reloc::IntelAbs8 => write!(f, "{}", "Abs8"),
|
||||
Reloc::IntelGotPCRel4 => write!(f, "{}", "GotPCRel4"),
|
||||
Reloc::IntelPLTRel4 => write!(f, "{}", "PLTRel4"),
|
||||
Reloc::Arm32Call | Reloc::Arm64Call | Reloc::RiscvCall => write!(f, "{}", "Call"),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user