diff options
author | johannst <johannes.stoelp@gmail.com> | 2021-03-16 19:28:38 +0100 |
---|---|---|
committer | johannst <johannes.stoelp@gmail.com> | 2021-03-16 19:28:38 +0100 |
commit | 3cbf2298b2b3dc24355449131d2e496f8e02b8f5 (patch) | |
tree | fc189b04ad11f784118b5a85d3875305712ca6b1 /02_process_init | |
parent | 59cc5384defab6cb7a949589032963ff3965edfe (diff) | |
download | dynld-3cbf2298b2b3dc24355449131d2e496f8e02b8f5.tar.gz dynld-3cbf2298b2b3dc24355449131d2e496f8e02b8f5.zip |
02: compile time arch check
Diffstat (limited to '02_process_init')
-rw-r--r-- | 02_process_init/entry.S | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/02_process_init/entry.S b/02_process_init/entry.S index 50425ba..652c175 100644 --- a/02_process_init/entry.S +++ b/02_process_init/entry.S @@ -2,6 +2,10 @@ #include <asm/unistd.h> +#if !defined(__linux__) || !defined(__x86_64__) +# error "Only supported in linux(x86_64)!" +#endif + .intel_syntax noprefix .section .text, "ax", @progbits |