This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
[hppa patch] function descriptor for entry poitn
- From: Randolph Chung <randolph at tausq dot org>
- To: libc-alpha at sources dot redhat dot com
- Cc: carlos at baldric dot uwo dot ca
- Date: Sat, 17 May 2003 23:02:41 -0700
- Subject: [hppa patch] function descriptor for entry poitn
- Reply-to: Randolph Chung <randolph at tausq dot org>
hppa, like some other architectures, has function descriptors, so we
need our own entry.h to properly locate the address of _start
please apply.
thanks,
randolph
2003-05-15 Randolph Chung <tausq@debian.org>
* sysdep/hppa/elf/entry.h: New file.
--- sysdeps/hppa/elf/entry.h 2003-05-15 22:29:52.000000000 -0700
+++ sysdeps/hppa/elf/entry.h 2003-05-15 22:29:52.000000000 -0700
@@ -0,0 +1,10 @@
+#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 *)(((long)_start) & ~2))
+
+/* We have to provide a special declaration. */
+#define ENTRY_POINT_DECL(class) class void _start (void);
--
Randolph Chung
Debian GNU/Linux Developer, hppa/ia64 ports
http://www.tausq.org/