Merge pull request #790 from lars-t-hansen/reloc_jt_fixes

Handle Reloc::X86PCRelRodata4 in sundry reloc_jt
This commit is contained in:
Lars T Hansen
2019-06-09 08:32:51 +02:00
committed by GitHub
2 changed files with 20 additions and 4 deletions

View File

@@ -413,7 +413,15 @@ impl<'a> RelocSink for FaerieRelocSink<'a> {
.expect("faerie relocation error"); .expect("faerie relocation error");
} }
fn reloc_jt(&mut self, _offset: CodeOffset, _reloc: Reloc, _jt: ir::JumpTable) { fn reloc_jt(&mut self, _offset: CodeOffset, reloc: Reloc, _jt: ir::JumpTable) {
unimplemented!(); match reloc {
Reloc::X86PCRelRodata4 => {
// Not necessary to record this unless we are going to split apart code and its
// jumptbl/rodata.
}
_ => {
panic!("Unhandled reloc");
}
}
} }
} }

View File

@@ -533,7 +533,15 @@ impl RelocSink for SimpleJITRelocSink {
}); });
} }
fn reloc_jt(&mut self, _offset: CodeOffset, _reloc: Reloc, _jt: ir::JumpTable) { fn reloc_jt(&mut self, _offset: CodeOffset, reloc: Reloc, _jt: ir::JumpTable) {
unimplemented!(); match reloc {
Reloc::X86PCRelRodata4 => {
// Not necessary to record this unless we are going to split apart code and its
// jumptbl/rodata.
}
_ => {
panic!("Unhandled reloc");
}
}
} }
} }