more ELF changes
Geoff Keating
geoffk@ozemail.com.au
Sun Jul 25 06:50:00 GMT 1999
> From: Ulrich Drepper <drepper@cygnus.com>
> 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 <geoffk@cygnus.com>
More information about the Libc-hacker
mailing list