Updated README code to bash

This commit is contained in:
York Jasper Niebuhr 2025-10-28 22:12:13 +01:00
parent db19da4a23
commit 660f82a823

View File

@ -18,7 +18,7 @@ After the patcher has done its thing, the binary can do whatever it always used
The finalizer requires LIEF to patch the binary. Unfortunately, most distros do not provide the correct package. To build it from source, do this: The finalizer requires LIEF to patch the binary. Unfortunately, most distros do not provide the correct package. To build it from source, do this:
``` ```bash
git clone https://github.com/lief-project/LIEF.git git clone https://github.com/lief-project/LIEF.git
cd LIEF cd LIEF
git checkout 0.17.1 git checkout 0.17.1
@ -33,7 +33,7 @@ Now to the annoying part: The GNU front-end for the C language folds offsetof-li
To deal with this reliably, using a custom GCC build is the only way. The required patch is provided in this repo. To use it and install the custom gcc, use these commands: To deal with this reliably, using a custom GCC build is the only way. The required patch is provided in this repo. To use it and install the custom gcc, use these commands:
``` ```bash
git clone git://gcc.gnu.org/git/gcc.git git clone git://gcc.gnu.org/git/gcc.git
cd gcc cd gcc
git checkout basepoints/gcc-16 git checkout basepoints/gcc-16
@ -58,7 +58,7 @@ With the dependencies in place, you can use CMake to build all 3 stages of SPSLR
In the directory you cloned this repo to, make a build directory and use cmake+make to build everything. As a result, you get all the stages and the example subject. Refer to the CMakeLists.txt files for information on how exactly all components come together. In the directory you cloned this repo to, make a build directory and use cmake+make to build everything. As a result, you get all the stages and the example subject. Refer to the CMakeLists.txt files for information on how exactly all components come together.
``` ```bash
mkdir build mkdir build
cd build cd build
cmake .. cmake ..