From 0e7725ccd887d057727d68b2a0c00999d2308659 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 13 Jun 1995 19:43:57 +0000 Subject: Don't include . [PIC] (soinit): Renamed to (global) _init. --- sysdeps/stub/init-first.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sysdeps') diff --git a/sysdeps/stub/init-first.c b/sysdeps/stub/init-first.c index 9f4b010f52..de803fadd0 100644 --- a/sysdeps/stub/init-first.c +++ b/sysdeps/stub/init-first.c @@ -17,15 +17,11 @@ License along with the GNU C Library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -#include #include extern void __libc_init (int, char **, char **); #ifdef PIC -static void soinit (int argc, char *arg0, ...) - __attribute__ ((unused, section (".init"))); - void __libc_init_first (void) { @@ -33,7 +29,11 @@ __libc_init_first (void) #endif #ifdef PIC -static void soinit +/* NOTE! The linker notices the magical name `_init' and sets the DT_INIT + pointer in the dynamic section based solely on that. It is convention + for this function to be in the `.init' section, but the symbol name is + the only thing that really matters!! */ +void _init #else void __libc_init_first #endif -- cgit v1.2.3