Skip to content

Commit

Permalink
core: bump to object 0.36
Browse files Browse the repository at this point in the history
closes #207
  • Loading branch information
williballenthin committed Nov 1, 2024
1 parent 7da2f47 commit a6c972f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ travis-ci = { repository = "https://github.com/williballenthin/lancelot", branch
[dependencies]
log = "0.4"
goblin = { version = "0.6", features = ["std", "pe32"], default-features = false }
object = "0.30"
object = "0.36"
zydis = { features = ["wasm", "serialization"], optional = true, version = "3.1.3" }
byteorder = "1"
bitflags = "1"
Expand Down
11 changes: 7 additions & 4 deletions core/src/loader/coff/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,6 @@ fn get_coff_symbols(obj: &object::File, module: &Module) -> Symbols {
name: name.to_string(),
kind: match symbol.kind() {
object::SymbolKind::Unknown => SymbolKind::Unknown,
object::SymbolKind::Null => SymbolKind::Null,
object::SymbolKind::Text => SymbolKind::Text,
object::SymbolKind::Data => SymbolKind::Data,
object::SymbolKind::Section => SymbolKind::Section,
Expand Down Expand Up @@ -645,9 +644,13 @@ fn get_coff_fixups(
// this makes me think there might be a bug lurking around.
target + reloc.addend()
}
(object::RelocationKind::Coff(typ), _) => {
warn!("coff: reloc: unsupported kind: COFF({:?})", typ);
continue;
(object::RelocationKind::Unknown, _) => {
if let object::RelocationFlags::Coff { typ } = reloc.flags() {
warn!("coff: reloc: unsupported kind: COFF({:?})", typ);
continue;
} else {
unimplemented!("relocation kind: {:?}", reloc.kind());
}
}
_ => unimplemented!("relocation kind: {:?}", reloc.kind()),
};
Expand Down

0 comments on commit a6c972f

Please sign in to comment.