* sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): If started by
commit879bf2e65a9ddaea34fe0428ab0f71caca4b4d00
authorRoland McGrath <roland@gnu.org>
Sat, 30 Sep 1995 21:18:30 +0000 (30 21:18 +0000)
committerRoland McGrath <roland@gnu.org>
Sat, 30 Sep 1995 21:18:30 +0000 (30 21:18 +0000)
tree7bfc6325a784f1f65f7cd527f1b1be6f2ff1a456
parent41cfadd63c6d28400f263460e3f2b15e74893b63
* sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): If started by

kernel with args on stack, point _dl_hurd_data at zero data
instead of garbage.  When ld.so run as program, grok args
-LIB=MEMOBJ and pre-load shared object files found in memory
objects loaded by the boot loader.

* elf/link.h (struct link_map): New member `l_entry'.
(_dl_map_object, _dl_map_object_from_fd): Remove last arg ENTRY_POINT.
* elf/dl-load.c (_dl_map_object, _dl_map_object_from_fd): Remove
last arg ENTRY_POINT.  Store the entry point location in the
`l_entry' member of the new map.
* elf/rtld.c (dl_main): Don't pass USER_ENTRY arg to
_dl_map_object.  When run as program, set *USER_ENTRY to L->l_entry.
* elf/dl-init.c (_dl_init_next): Don't pass ENTRY_POINT arg to
_dl_map_object.
ChangeLog
elf/dl-init.c
elf/dl-load.c
elf/link.h
elf/rtld.c
posix/getopt.c
sysdeps/mach/hurd/dl-sysdep.c