Ignore Absolute relocations and log warning

This commit is contained in:
Luke Street 2024-10-31 17:24:49 -06:00
parent 79bd7317c1
commit 2fd655850a
1 changed files with 4 additions and 0 deletions

View File

@ -335,6 +335,10 @@ fn relocations_by_section(
}; };
symbol symbol
} }
RelocationTarget::Absolute => {
log::warn!("Ignoring absolute relocation @ {}:{:#x}", section.name, address);
continue;
}
_ => bail!("Unhandled relocation target: {:?}", reloc.target()), _ => bail!("Unhandled relocation target: {:?}", reloc.target()),
}; };
let flags = reloc.flags(); // TODO validate reloc here? let flags = reloc.flags(); // TODO validate reloc here?