Some experiments around compiling the most used Dwarf information (ELF debug data) directly into assembly.
Go to file
Théophile Bastian 4181dd828a compare_sizes: compare to original program size 2018-07-02 12:44:27 +02:00
benching Add hackbench 2018-06-13 19:55:41 +02:00
env Add env sourcing script 2018-07-02 12:33:33 +02:00
shared Handle rbx 2018-06-22 09:15:10 +02:00
src Merge branch 'rbx' into lighter_c_rbx 2018-06-25 16:56:07 +02:00
stack_walker Use max(uintptr_t) as error, not assert(0) 2018-06-13 19:13:33 +02:00
stack_walker_libunwind Add a libunwind-powered stack_walker 2018-05-18 11:33:39 +02:00
tests Add a libunwind-powered stack_walker 2018-05-18 11:33:39 +02:00
.gitignore Add two csmith benching scripts 2018-06-04 15:07:38 +02:00
LICENSE Initial commit 2018-04-20 11:33:48 +02:00
Makefile Add python script to compile easily 2018-04-25 17:33:59 +02:00
README.md Add READMEs 2018-05-15 18:13:09 +02:00
compare_sizes.py compare_sizes: compare to original program size 2018-07-02 12:44:27 +02:00
extract_pc.py Refactor extract_pc 2018-05-11 13:09:58 +02:00
generate_eh_elf.py Add auxiliary eh_elfs directories 2018-06-22 08:56:20 +02:00
shared_python.py Add auxiliary eh_elfs directories 2018-06-22 08:56:20 +02:00

README.md

Dwarf Assembly

Some experiments around compiling the most used Dwarf informations (ELF debug data) directly into assembly.

This project is a big work in progress, don't expect anything to be stable for now.

Dependencies

As of now, this project relies on the following libraries:

These libraries are expected to be installed somewhere your compiler can find them.

Scripts and directories

  • ./generate_eh_elf.py: generate .eh_elf.so files for a binary (and its dependencies if required)
  • ./compare_sizes.py: compare the sizes of the .eh_frame of a binary (and its dependencies) with the sizes of the .text of the generated ELFs.
  • ./extract_pc.py: extracts a list of valid program counters of an ELF and produce a file as read by dwarf-assembly