From 3339b76414a2c0f76bf001dc540289da03bed668 Mon Sep 17 00:00:00 2001 From: Nick Lewycky Date: Mon, 3 May 2021 16:39:08 -0700 Subject: [PATCH] Use symbolic name instead of number for relocation. --- lib/compiler-llvm/src/object_file.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/compiler-llvm/src/object_file.rs b/lib/compiler-llvm/src/object_file.rs index 11b86166a48..67eb9240b0d 100644 --- a/lib/compiler-llvm/src/object_file.rs +++ b/lib/compiler-llvm/src/object_file.rs @@ -165,7 +165,7 @@ where { let kind = match (reloc.kind(), reloc.size()) { (object::RelocationKind::Absolute, 64) => RelocationKind::Abs8, - (object::RelocationKind::Elf(24), 0) => RelocationKind::X86PCRel8, + (object::RelocationKind::Elf(object::elf::R_X86_64_PC64), 0) => RelocationKind::X86PCRel8, _ => { return Err(CompileError::Codegen(format!( "unknown relocation {:?}",