about summary refs log tree commit diff
path: root/sysdeps/ia64/entry.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/ia64/entry.h')
-rw-r--r--sysdeps/ia64/entry.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/sysdeps/ia64/entry.h b/sysdeps/ia64/entry.h
new file mode 100644
index 0000000000..e11b49fc53
--- /dev/null
+++ b/sysdeps/ia64/entry.h
@@ -0,0 +1,13 @@
+#include <link.h>
+#include <dl-fptr.h>
+
+#ifndef __ASSEMBLY__
+extern void _start (void);
+#endif
+
+/* 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
+
+/* We have to provide a special declaration.  */
+#define ENTRY_POINT_DECL(class) class void _start (void);