From c70a4b1db0cf5e813ae24b0fa96a352399eb6edf Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 15 Feb 2014 22:07:25 -0500 Subject: ia64: relocate out of ports/ subdir --- sysdeps/ia64/entry.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 sysdeps/ia64/entry.h (limited to 'sysdeps/ia64/entry.h') 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 +#include + +#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); -- cgit 1.4.1