mirror of
https://github.com/encounter/objdiff.git
synced 2025-12-09 21:47:42 +00:00
Ignore Absolute relocations and log warning
This commit is contained in:
@@ -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?
|
||||||
|
|||||||
Reference in New Issue
Block a user