mirror of https://github.com/encounter/objdiff.git
Ignore Absolute relocations and log warning
This commit is contained in:
parent
79bd7317c1
commit
2fd655850a
|
@ -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?
|
||||||
|
|
Loading…
Reference in New Issue