Rename GotPCRel4 to GOTPCRel4.
This emphasizes that GOT is being used as an abbreviation rather than the word "got".
This commit is contained in:
@@ -565,7 +565,7 @@ got_fnaddr8 = TailRecipe(
|
||||
emit='''
|
||||
PUT_OP(bits, rex2(0, out_reg0), sink);
|
||||
modrm_riprel(out_reg0, sink);
|
||||
sink.reloc_external(Reloc::IntelGotPCRel4,
|
||||
sink.reloc_external(Reloc::IntelGOTPCRel4,
|
||||
&func.dfg.ext_funcs[func_ref].name);
|
||||
sink.put4(0);
|
||||
''')
|
||||
@@ -597,7 +597,7 @@ got_gvaddr8 = TailRecipe(
|
||||
emit='''
|
||||
PUT_OP(bits, rex2(0, out_reg0), sink);
|
||||
modrm_rm(5, out_reg0, sink);
|
||||
sink.reloc_external(Reloc::IntelGotPCRel4,
|
||||
sink.reloc_external(Reloc::IntelGOTPCRel4,
|
||||
&func.global_vars[global_var].symbol_name());
|
||||
sink.put4(0);
|
||||
''')
|
||||
|
||||
@@ -29,7 +29,7 @@ pub enum Reloc {
|
||||
/// Intel absolute 8-byte
|
||||
IntelAbs8,
|
||||
/// Intel GOT PC-relative 4-byte
|
||||
IntelGotPCRel4,
|
||||
IntelGOTPCRel4,
|
||||
/// Intel PLT-relative 4-byte
|
||||
IntelPLTRel4,
|
||||
/// Arm32 call target
|
||||
@@ -48,7 +48,7 @@ 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::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