aboutsummaryrefslogtreecommitdiff
path: root/REORG.TODO/sysdeps/hppa/entry.h
diff options
context:
space:
mode:
Diffstat (limited to 'REORG.TODO/sysdeps/hppa/entry.h')
-rw-r--r--REORG.TODO/sysdeps/hppa/entry.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/REORG.TODO/sysdeps/hppa/entry.h b/REORG.TODO/sysdeps/hppa/entry.h
new file mode 100644
index 0000000000..5ea5b47448
--- /dev/null
+++ b/REORG.TODO/sysdeps/hppa/entry.h
@@ -0,0 +1,13 @@
+#ifndef __ASSEMBLY__
+extern void _start (void);
+#endif
+
+/* Lives in libgcc.so and canonicalizes function pointers for comparison. */
+extern unsigned int __canonicalize_funcptr_for_compare (unsigned int fptr);
+
+/* The function's entry point is stored in the first word of the
+ function descriptor (plabel) of _start(). */
+#define ENTRY_POINT __canonicalize_funcptr_for_compare((unsigned int)_start)
+
+/* We have to provide a special declaration. */
+#define ENTRY_POINT_DECL(class) class void _start (void);