summaryrefslogtreecommitdiffstats
path: root/sys/arm/include/elf.h
diff options
context:
space:
mode:
authorcognet <cognet@FreeBSD.org>2005-11-24 02:27:55 +0000
committercognet <cognet@FreeBSD.org>2005-11-24 02:27:55 +0000
commit792c8e2f4900802933c70899fadd6312270e880d (patch)
treeb91167727d6cc4241e3294a69ded61fbe3e076fd /sys/arm/include/elf.h
parent2a2203ec202a935c64457164772bd84ca2d2814c (diff)
downloadFreeBSD-src-792c8e2f4900802933c70899fadd6312270e880d.zip
FreeBSD-src-792c8e2f4900802933c70899fadd6312270e880d.tar.gz
Use a magic number to know we were started from the elf wrapper.
Add a dummy _start function to make the non-elf version of the wrapper work.
Diffstat (limited to 'sys/arm/include/elf.h')
-rw-r--r--sys/arm/include/elf.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/arm/include/elf.h b/sys/arm/include/elf.h
index a6f1462..81351e8 100644
--- a/sys/arm/include/elf.h
+++ b/sys/arm/include/elf.h
@@ -125,4 +125,9 @@ __ElfType(Auxinfo);
#define ELF_TARG_MACH EM_ARM
#define ELF_TARG_VER 1
+/*
+ * Magic number for the elf trampoline, chosen wisely to be an immediate
+ * value.
+ */
+#define MAGIC_TRAMP_NUMBER 0x5c000003
#endif /* !_MACHINE_ELF_H_ */
OpenPOWER on IntegriCloud