Skip to content

Latest commit

 

History

History
36 lines (34 loc) · 726 Bytes

Readme.md

File metadata and controls

36 lines (34 loc) · 726 Bytes

This project is a learning project which shows decoding of dwarf3 .debug_line section in a ELF32.

Linux

sudo apt install gcc-multilib g++-multilib

Build

mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Debug -DENABLE_TARGETFILE=1 ..
cmake --build .

Note the test target file can only be built on Linux

Run

./build/ELFLearn build/TargetFile/CMakeFiles/TargetFile.dir/targetfile.cpp.o

Windows

Build

mkdir build_win
cd build_win
cmake -A x64 ..
cmake --build .

Run

build_win\Debug\ELFLearn.exe path_to_elf_file

Readelf commands

Read .debug_info

readelf --debug-dump=info ./build/TargetFile/CMakeFiles/TargetFile.dir/targetfile.cpp.o