#llvm #stack #maps #emitted #parser #binary #stackmap

llvm_stackmap

A library capable of parsing stack maps emitted by the LLVM compiler

1 unstable release

0.1.4 Sep 28, 2022
0.1.3 Sep 28, 2022
0.1.2 Sep 28, 2022
0.1.1 Sep 28, 2022
0.1.0 Sep 28, 2022

#899 in Programming languages

AGPL-3.0-only

23KB
434 lines

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();

Dependencies

~130–550KB
~10K SLoC