aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/ia64/entry.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/ia64/entry.h')
-rw-r--r--sysdeps/ia64/entry.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/sysdeps/ia64/entry.h b/sysdeps/ia64/entry.h
new file mode 100644
index 0000000..9ae8b86
--- /dev/null
+++ b/sysdeps/ia64/entry.h
@@ -0,0 +1,8 @@
+#include <link.h>
+#include <dl-fptr.h>
+
+extern void _start (void);
+
+/* The function's entry point is stored in the first word of the
+ function descriptor (plabel) of _start(). */
+#define ENTRY_POINT ELF_PTR_TO_FDESC (_start)->ip