Add comment explaining rust host failure

This commit is contained in:
Brendan Hansknecht 2021-09-15 15:38:40 -07:00
parent e4b3402369
commit b56606c5ac

View file

@ -369,6 +369,9 @@ fn preprocess_impl(
println!("PLT File Offset: {:+x}", plt_offset); println!("PLT File Offset: {:+x}", plt_offset);
} }
// TODO: it looks like we may need to support global data host relocations.
// Rust host look to be using them by default instead of the plt.
// I think this is due to first linking into a static lib and then linking to the c wrapper.
let plt_relocs = (match exec_obj.dynamic_relocations() { let plt_relocs = (match exec_obj.dynamic_relocations() {
Some(relocs) => relocs, Some(relocs) => relocs,
None => { None => {