aboutsummaryrefslogtreecommitdiffstats
path: root/_/aarch64
diff options
context:
space:
mode:
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
+