aboutsummaryrefslogtreecommitdiffstats
path: root/_/aarch64
diff options
context:
space:
mode:
authorHunter Kvalevog <hunter@kvog.sh>2026-10-16 19:51:49 -0500
committerHunter Kvalevog <hunter@kvog.sh>2026-10-16 19:51:49 -0500
commit9c4575d9b179d1904fb6525bf068b2736ad9fecd (patch)
tree3ac93e6d39268d28d6306ab7c69e4197f628b59b /_/aarch64
parent9c784954ad0c017aa0c15b4277dfc297da725470 (diff)
downloaddemos-9c4575d9b179d1904fb6525bf068b2736ad9fecd.tar.gz
demos-9c4575d9b179d1904fb6525bf068b2736ad9fecd.zip
Diffstat (limited to '_/aarch64')
-rw-r--r--_/aarch64/common.S21
1 files changed, 21 insertions, 0 deletions
diff --git a/_/aarch64/common.S b/_/aarch64/common.S
new file mode 100644
index 0000000..616af28
--- /dev/null
+++ b/_/aarch64/common.S
@@ -0,0 +1,21 @@
+// ================================================================================================
+// Shared macros
+//
+// License:
+// Copyright (c) 2026 Hunter Kvalevog
+//
+// Permission to use, copy, modify, and/or distribute this software for any
+// purpose with or without fee is hereby granted.
+//
+// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+// WITH REGARD TO THIS SOFTWARE.
+// ================================================================================================
+
+#ifdef __APPLE__
+# define SYM(LABEL) _##LABEL
+# define TEXT_SEGMENT .section __TEXT,__text
+#else
+# define SYM(LABEL) LABEL
+# define TEXT_SEGMENT .section .text
+#endif
+