From mboxrd@z Thu Jan 1 00:00:00 1970 From: Geoff Keating To: drepper@cygnus.com Cc: roland@frob.com, libc-hacker@sourceware.cygnus.com Subject: Re: more ELF changes Date: Sun, 25 Jul 1999 06:50:00 -0000 Message-id: <199907251349.XAA00772@geoffk.wattle.id.au> References: <199907242259.SAA10186@frob.com> X-SW-Source: 1999-07/msg00090.html > From: Ulrich Drepper > Date: 24 Jul 1999 17:28:29 -0700 > But I want to overhaul the init handling anyhow. There is no reason > to do that much in assembly. My suggestion would be to do it in _dl_start. Pass all init functions argc, argv, and envp. This is what dlopen does anyway, so there is no point trying to do anything tricky in the startup code, because it won't work properly when the library is dlopen()ed (and we don't in fact do anything tricky now, anyway). Then you can eliminate init_first.h, which requires assembler on most targets for no particular reason; ld.so has already worked out where argv etc. are before init-first.h is run. -- Geoffrey Keating