mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-12 14:20:13 +00:00
c5abd7ce01
Function pointers on ia64 are like parisc -- they're plabels. While the parisc port enjoys a gcc builtin for extracting the address here, ia64 has no such luck. Casting & dereferencing in one go triggers a strict aliasing warning. Use a union to fix that. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
14 lines
368 B
C
14 lines
368 B
C
#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);
|