From 380f0fe40b1ab20790e75dac779e73667cc5ac72 Mon Sep 17 00:00:00 2001 From: FreeArtMan Date: Sat, 4 Feb 2023 14:10:26 +0000 Subject: Update all content to new pygmentize --- md/writeup/arm64_assembly_hello_world.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'md/writeup/arm64_assembly_hello_world.md') diff --git a/md/writeup/arm64_assembly_hello_world.md b/md/writeup/arm64_assembly_hello_world.md index 118e7b6..c4685f1 100644 --- a/md/writeup/arm64_assembly_hello_world.md +++ b/md/writeup/arm64_assembly_hello_world.md @@ -25,12 +25,12 @@ int main() { Running 64bit linux. To detect with architecture and what bitness of os run command -``` +```bash uname ``` Architecture shown as aarch64 enoughs to indicate that os ir 64bit -``` +```bash Linux raspberrypi 5.4.42-v8+ #1319 SMP PREEMPT Wed May 20 14:18:56 BST 2020 aarch64 GNU/Linux ``` @@ -65,9 +65,9 @@ _start: Too compile check if you have installed gnu gcc, other compilers such as clang also should work perfectly fine. -```makefile - as hello.s -o hello.o - gcc hello.o -o hello +```bash +as hello.s -o hello.o +gcc hello.o -o hello ``` ## Apple M1 @@ -97,7 +97,7 @@ helloworld_len = . - helloworld Install xcode tools before compilation -```makefile +```bash as -o hello.o hello.s ld -macosx_version_min 11.0.0 -o hello hello.o -lSystem -syslibroot `xcrun -sdk macosx --show-sdk-path` -e _start -arch arm64 ``` -- cgit v1.2.3