GDB Usage

Check memory layout To check the memory layout of a binary in GDB, you can use different commands depending on whether the program is currently running or if you are…

An introduction to GCC and GCC’s plugins

https://gabrieleserra.ml/blog/2020-08-27-an-introduction-to-gcc-and-gccs-plugins.html 1. Brief introduction to GNU’s GCC The GNU toolchain is a collection of tools and libraries produced in the context of the GNU project. In 1983, Richard Stallman announced the…

Lima Ubuntu VM setup on Mac

Homebrew https://gitee.com/cunkai/HomebrewCN/blob/master/error.md Installation /bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)" Uninstallation /bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/HomebrewUninstall.sh)" Lima Lima launches Linux virtual machines with automatic file sharing and port forwarding (similar to WSL2). #…

Everything I know about GNU toolchain

https://maskray.me/blog/2021-01-24-gnu-toolchain#:~:text=Main%20tools:%20as%20(%20gas/,make%20%2DC%20out/debug%20all As mainly an LLVM person, I occasionally contribute to GNU toolchain projects. This is sometimes for fun, sometimes for investigating why an (usually ancient) feature works in a particular…

How to compile coreutils / binutils for aarch64 in x64

Dockcross git clone https://github.com/dockcross/dockcross.git cd dockcross docker run --rm dockcross/linux-arm64> ./dockcross-linux-arm64 chmod +x ./dockcross-linux-arm64 mv ./dockcross-linux-arm64 ~/bin/ Coreutils / Binutils //Go to the repository diretory dockcross-linux-arm64 bash //In the docker…

Installing & Building RISC-V Toolchain

https://bernardnongpoh.github.io/posts/riscv https://github.com/riscv-collab/riscv-gnu-toolchain Prerequisites Several standard packages are needed to build the toolchain $ sudo apt-get install autoconf automake autotools-dev curl python3 python3-pip libmpc-dev libmpfr-dev libgmp-dev gawk build-essential bison flex texinfo…