clab/README.md
2024-06-28 09:09:03 +01:00

26 lines
No EOL
790 B
Markdown

# Additional Info
Install arm toolchain on debian linux (assuming x86 environment).
```shell
sudo apt update -y && sudo apt upgrade -y
sudo apt install qemu-user qemu-user-static gcc-aarch64-linux-gnu binutils-aarch64-linux-gnu binutils-aarch64-linux-gnu-dbg build-essential
```
## Utility commands
Convert hex to dec in shell
```shell
echo $((16#07c6))
1990
```
## Resources
* [Go and GDB](https://go.dev/doc/gdb)
* [Go morestack_noctxt](https://blog.leexun.tw/go-runtime-morestack_noctxt)
* [.rodata segment](https://guyonbits.com/from-rodata-to-rwdata-introduction-to-memory-mapping-and-ld-scripts/)
* [mprotect](https://man7.org/linux/man-pages/man2/mprotect.2.html)
* [Makefile Automatic Variables](https://www.gnu.org/software/make/manual/html_node/Automatic-Variables.html)