From 9576893b004b5e6ac9a917fff144618f38a5e32d Mon Sep 17 00:00:00 2001 From: York Jasper Niebuhr Date: Mon, 27 Oct 2025 16:40:30 +0100 Subject: [PATCH] Added LIEF for spslr_finalize --- docs/deps.txt | 10 ++++++++++ finalize/CMakeLists.txt | 3 +++ 2 files changed, 13 insertions(+) create mode 100644 docs/deps.txt diff --git a/docs/deps.txt b/docs/deps.txt new file mode 100644 index 0000000..e8b222e --- /dev/null +++ b/docs/deps.txt @@ -0,0 +1,10 @@ +The spslr_pinpoint plugin requires a patched version of gcc. The provided patch will hopefully be +upstreamed in gcc 16. + +The spslr_finalize tool requires LIEF: +1. git clone https://github.com/lief-project/LIEF.git +2. cd LIEF +3. git checkout 0.17.1 +4. cmake -B build -S . -DCMAKE_BUILD_TYPE=Release -DLIEF_PYTHON_API=OFF -DLIEF_DOC=OFF -DLIEF_EXAMPLES=OFF +5. cmake --build build -j$(nproc) +6. sudo cmake --install build diff --git a/finalize/CMakeLists.txt b/finalize/CMakeLists.txt index 828fc5a..b3d0e7d 100644 --- a/finalize/CMakeLists.txt +++ b/finalize/CMakeLists.txt @@ -1 +1,4 @@ +find_package(LIEF REQUIRED) + add_executable(spslr_finalize finalize.cpp) +target_link_libraries(spslr_finalize PRIVATE LIEF::LIEF)