Skip to content

Rust bindings needed for custom function lifters#8197

Open
zznop wants to merge 2 commits into
devfrom
test_tms320c6x
Open

Rust bindings needed for custom function lifters#8197
zznop wants to merge 2 commits into
devfrom
test_tms320c6x

Conversation

@zznop
Copy link
Copy Markdown
Member

@zznop zznop commented May 22, 2026

Rust bindings for core functions required to implement a custom function lifter in an architecture plugin. These bindings were required to add support for Texas Instruments TMS320C6x

@zznop zznop added this to the Krypton milestone May 22, 2026
@zznop zznop self-assigned this May 22, 2026
Comment thread rust/src/architecture.rs

pub struct FunctionLifterContext {
pub(crate) handle: *mut BNFunctionLifterContext,
pub function: *mut BNLowLevelILFunction,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems strange to expose the function as a raw pointer, can we ref count it like everything else?

Comment thread rust/src/architecture.rs
pub inlined_remapping: HashMap<Location, Location>,
pub user_indirect_branches: HashMap<Location, HashSet<Location>>,
pub auto_indirect_branches: HashMap<Location, HashSet<Location>>,
//pub inlined_calls: HashSet<u64>,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not used anymore?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants