Skip to content

Commit

Permalink
Use symbolic name instead of number for relocation.
Browse files Browse the repository at this point in the history
  • Loading branch information
nlewycky committed May 3, 2021
1 parent fd22404 commit 3339b76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/compiler-llvm/src/object_file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {:?}",
Expand Down

0 comments on commit 3339b76

Please sign in to comment.