Skip to main content

Module obj

Module obj 

Source
Expand description

Helpers for working with types from the [object] crate.

Re-exportsΒ§

use std::collections::BTreeSet; πŸ”’
use std::os::unix::ffi::OsStrExt; πŸ”’
use std::path::Path; πŸ”’
use std::path::PathBuf; πŸ”’
use bstr::BStr; πŸ”’
use object; πŸ”’
use object::Object; πŸ”’
use object::ObjectSymbol; πŸ”’
use object::Symbol; πŸ”’
use crate::rfs; πŸ”’

StructsΒ§

ArchiveFile
A partially parsed archive file.
BinFile
Thin wrapper for owning data used by object, which may be either an archive or a single object file.

EnumsΒ§

ContainsAllSymbolSubstringsOutcome
ContainsAllSymbolsOutcome
ObjFile
An object file that can be any supported file format.

FunctionsΒ§

exported_dynamic_symbol_names
Given an object::File, find the exported dynamic symbol names via [object::Object::exports]. This does not distinguish between which section the symbols appear in.
object_contains_all_symbol_substring
Check an object file’s symbols for presence of all of provided substrings. That is, if an object file contains symbols ["hello", "goodbye", "world"], it will be matched against a list of substrings of ["he", "go"]. In this case, he is a substring of hello, and go is a substring of goodbye, so each of substrings was found.
object_contains_all_symbols
Check an object file contains all symbols provided in candidate_symbols.
object_contains_any_symbol
Check an object file’s symbols for any exact matches against those provided in candidate_symbols.
object_contains_any_symbol_substring
Check an object file’s symbols for any matching substrings. That is, if an object file contains a symbol named hello_world, it will be matched against a provided substrings of ["hello", "bar"].

Type AliasesΒ§

ObjResult
The result type used within the read module.