From: Florian Weimer Date: Fri, 7 Jan 2022 13:47:31 +0000 (+0100) Subject: Restore ENTRY_POINT definition on hppa, ia64 (bug 28749) X-Git-Tag: glibc-2.35~119 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6b0978c14acc2a6b5f5dbd8e8ef75fddc6656483;p=platform%2Fupstream%2Fglibc.git Restore ENTRY_POINT definition on hppa, ia64 (bug 28749) ENTRY_POINT is still needed for elf/rtld.c. Fixes commit 4fb4e7e821e3 ("csu: Always use __executable_start in gmon-start.c"). --- diff --git a/sysdeps/hppa/entry.h b/sysdeps/hppa/entry.h new file mode 100644 index 0000000..f88bb56 --- /dev/null +++ b/sysdeps/hppa/entry.h @@ -0,0 +1,8 @@ +extern void _start (void); + +/* 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) diff --git a/sysdeps/ia64/entry.h b/sysdeps/ia64/entry.h new file mode 100644 index 0000000..9ae8b86 --- /dev/null +++ b/sysdeps/ia64/entry.h @@ -0,0 +1,8 @@ +#include +#include + +extern void _start (void); + +/* 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