llvm_stackmap

Crates.iollvm_stackmap
lib.rsllvm_stackmap
version0.1.5
sourcesrc
created_at2022-09-28 13:20:06.99312
updated_at2024-07-08 12:37:00.692156
descriptionA library capable of parsing stack maps emitted by the LLVM compiler.
homepage
repositoryhttps://github.com/fuzztruction/llvm-stackmap-rs
max_upload_size
id675732
size65,676
Nils Bars (nbars)

documentation

README

llvm-stackmap

This is a library that can be used to parse stack maps emitted by the experimental stack maps feature provided by LLVM

Example

Parsing a stack map embedded into the binary objdump can be done via the following snippet:

use llvm_stackmap::StackMap;
use std::path::PathBuf;

let path_to_elf = PathBuf::from_str("objdump").unwrap();
let sm = StackMap::from_path(path_to_elf).unwrap();
Commit count: 18

cargo fmt