mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
Fri Jun 14 01:51:47 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
* version.c (banner): New static const variable, complete version banner text. (__libc_print_version): Use it, and use __write instead of printf. * configure.in (sysnames): Don't cache the value, because it depends only on libc sources. Merge uniquifying third pass into Implies/parent expansion second pass. Report each unique name as it is added in partial report string, terminated when finished. * Makeconfig (sysdep_dir): Move defn before config.status rule that expands it. (sysdep-configures): Variable removed. (config.status): Use its contents directly, tighten up a bit, and include Implies files. * elf/dl-open.c (_dl_open) [PIC]: Set PARENT to _dl_loaded if null. * elf/Makefile ($(objpfx)$(rtld-installed-name)): Make a symlink. * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_open_zero_fill): Add comment. * elf/rtld.c (dl_main): Close _dl_zerofd after mapping deps. * sysdeps/generic/machine-gmon.h [NO_UNDERSCORES]: Define mcount as weak alias for _mcount. * sysdeps/alpha/_mcount.S (mcount): Define as weak alias.
This commit is contained in:
@ -32,6 +32,13 @@ _dl_open (struct link_map *parent, const char *file, int mode)
|
||||
struct r_debug *r;
|
||||
|
||||
|
||||
#ifdef PIC
|
||||
if (! parent)
|
||||
/* If no particular dependent object caused this load,
|
||||
then use the DT_RPATH of the executable itself. */
|
||||
parent = _dl_loaded;
|
||||
#endif
|
||||
|
||||
/* Load the named object. */
|
||||
new = _dl_map_object (parent, file, lt_loaded);
|
||||
if (new->l_searchlist)
|
||||
|
Reference in New Issue
Block a user