diff options
| author | Hunter Kvalevog <hunter@kvog.sh> | 2026-06-09 17:45:45 -0500 |
|---|---|---|
| committer | Hunter Kvalevog <hunter@kvog.sh> | 2026-06-09 17:45:45 -0500 |
| commit | 15239ba6cfe2279b5afebfd4f954bb5469c605f1 (patch) | |
| tree | a144533a5582611519c78c6fcc4fdfa044b407fc /aarch64/common.S | |
| parent | 9a6b8819f84def6e6d1b997df011ed386f6cd06e (diff) | |
Diffstat (limited to 'aarch64/common.S')
| -rw-r--r-- | aarch64/common.S | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/aarch64/common.S b/aarch64/common.S new file mode 100644 index 0000000..34bb529 --- /dev/null +++ b/aarch64/common.S @@ -0,0 +1,25 @@ +// ================================================================================================ +// Shared macros +// +// License: +// SPDX-License-Identifier: 0BSD +// 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. +// ================================================================================================ + +#define CONCAT_(A, B) A ## B +#define CONCAT(A, B) CONCAT_(A, B) + +#ifdef __APPLE__ +# define SYM(LABEL) CONCAT(_, LABEL) +# define TEXT_SEGMENT .section __TEXT,__text +#else +# define SYM(LABEL) LABEL +# define TEXT_SEGMENT .section .text +#endif + |