![]() There's many other resources for learning GDB, so I won't go into detail here. We can do this with aarch64-linux-gnu-objdump which we got with the toolchain. We're interested in learning the ARM64 architecture, so it's important to be able to disassemble binaries, so we can see the ARM64 instructions that it contains. Generating static binaries is an easy way around this, since we're just playing around.Ĭool! Now we have an ARM64 binary we can disassemble, execute, and debug. We need this because the cross compiler by default generates dynamic binaries that rely on an ARM64 version of the dynamic linker, which we don't have. ![]() $ aarch64-linux-gnu-g++-8 -o arm64main arm64main.cpp -staticĪrm64main: ELF 64-bit LSB shared object, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, for GNU/Linux 3.7.0, BuildID=7b1bbf64436de3f0e268d1d8ab93d2123d4dcaef, not stripped ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |