about summary refs log tree commit diff
path: root/sysdeps/ia64/elf/entry.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/ia64/elf/entry.h')
-rw-r--r--sysdeps/ia64/elf/entry.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sysdeps/ia64/elf/entry.h b/sysdeps/ia64/elf/entry.h
new file mode 100644
index 0000000000..53ea9a2297
--- /dev/null
+++ b/sysdeps/ia64/elf/entry.h
@@ -0,0 +1,7 @@
+#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 (((long int *) _start)[0])