aboutsummaryrefslogtreecommitdiff
path: root/02_process_init
diff options
context:
space:
mode:
authorjohannst <johannes.stoelp@gmail.com>2021-03-16 19:28:38 +0100
committerjohannst <johannes.stoelp@gmail.com>2021-03-16 19:28:38 +0100
commit3cbf2298b2b3dc24355449131d2e496f8e02b8f5 (patch)
treefc189b04ad11f784118b5a85d3875305712ca6b1 /02_process_init
parent59cc5384defab6cb7a949589032963ff3965edfe (diff)
downloaddynld-3cbf2298b2b3dc24355449131d2e496f8e02b8f5.tar.gz
dynld-3cbf2298b2b3dc24355449131d2e496f8e02b8f5.zip
02: compile time arch check
Diffstat (limited to '02_process_init')
-rw-r--r--02_process_init/entry.S4
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