c0f62c5678
Update. Add support for namespaces in the dynamic linker. * dlfcn/Makefile (libdl-routines): Add dlmopen. * dlfcn/Versions [libdl, GLIBC_2.3.4]: Add dlmopen. * dlfcn/dlfcn.h: Define Lmid_t, LM_ID_BASE, and LM_ID_NEWLM. Declare dlmopen. Document RTLD_DI_LMID. * dlfcn/dlinfo.c: Handle RTLD_DI_LMID. * dlfcn/dlmopen.c: New file. * dlfcn/dlopen.c: Pass new parameter to _dl_open. * dlfcn/dlopenold.c: Likewise. * elf/dl-addr.c: Adjust for removal of GL(dl_loaded). * elf/dl-caller.c: Likewise. * elf/dl-close.c: Likewise. * elf/dl-conflict.c: Likewise. * elf/dl-debug.c: Likewise. * elf/dl-lookup.c: Likewise. * elf/dl-sym.c: Likewise. * elf/dl-version.c: Likewise. * elf/do-lookup.h: Likewise. * elf/rtld.c: Likewise. * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise. * elf/dl-depsc: Likewise. Add new parameter to _dl_map_object. * elf/dl-fini.c: Call destructors in all namespaces. * elf/dl-iteratephdr.c: Compute total nloaded. Adjust for removal of GL(dl_loaded). * elf/dl-libc.c: Pass new parameter to _dl_open. Adjust for removal of GL(dl_loaded). * elf/dl-load.c (_dl_map_object_from_fd): Don't load ld.so a second time. Reuse the one from the main namespace in all others. Pass new parameter to _dl_new_object. Adjust for removal of GL(dl_loaded). * elf/dl-object.c: Take new parameter. Use it to initialize l_ns. Adjust for removal of GL(dl_loaded). * elf/dl-open.c (_dl_open): Take new parameter. Adjust for removal of GL(dl_loaded). * elf/dl-support.c: Replace global _dl_loaded etc variables with _dl_ns variable. * include/dlfcn.h: Adjust prototype of _dl_open. Define __LM_ID_CALLER. * include/link.h: Add l_real, l_ns, and l_direct_opencount elements. * sysdeps/generic/dl-tls.c: Bump TLS_STATIC_SURPLUS. Since libc is using TLS we need memory appropriate to the number of namespaces. * sysdeps/generic/ldsodefs.h (struct rtld_global): Replace _dl_loaded, _dl_nloaded, _dl_global_scope, _dl_main_searchlist, and _dl_global_scope_alloc with _dl_ns element. Define DL_NNS. Adjust prototypes of _dl_map_object and member in rtld_global_ro. * malloc/malloc.c: Include <dlfcn.h>. * malloc/arena.c (ptmalloc_init): If libc is not in primary namespace, never use brk. * elf/Makefile: Add rules to build and run tst-dlmopen1 and tst-dlmopen2. * elf/tst-dlmopen1.c: New file. * elf/tst-dlmopen1mod.c: New file. * elf/tst-dlmopen2.c: New file. * elf/dl-close.c: Improve reference counting by tracking direct loads. * elf/dl-lookup.c (add_dependency): Likewise. * elf/dl-open.c (dl_open_worker): Likewise. * elf/rtld.c (dl_main): Likewise. 2004-09-09 GOTO Masanori <gotom@debian.or.jp> [BZ #77] * elf/dl-close.c: Count down l_opencount to check not only for l_reldeps, but also l_initfini. 2004-10-13 Ulrich Drepper <drepper@redhat.com> |
||
---|---|---|
.. | ||
.cvsignore | ||
cache.c | ||
check-textrel.c | ||
chroot_canon.c | ||
circleload1.c | ||
circlemod1.c | ||
circlemod1a.c | ||
circlemod2.c | ||
circlemod2a.c | ||
circlemod3.c | ||
circlemod3a.c | ||
constload1.c | ||
constload2.c | ||
constload3.c | ||
dblload.c | ||
dblloadmod1.c | ||
dblloadmod2.c | ||
dblloadmod3.c | ||
dblunload.c | ||
dep1.c | ||
dep2.c | ||
dep3.c | ||
dep4.c | ||
dl-addr.c | ||
dl-caller.c | ||
dl-close.c | ||
dl-conflict.c | ||
dl-debug.c | ||
dl-deps.c | ||
dl-dst.h | ||
dl-error.c | ||
dl-fini.c | ||
dl-init.c | ||
dl-iteratephdr.c | ||
dl-libc.c | ||
dl-load.c | ||
dl-lookup.c | ||
dl-minimal.c | ||
dl-misc.c | ||
dl-object.c | ||
dl-open.c | ||
dl-profile.c | ||
dl-profstub.c | ||
dl-reloc.c | ||
dl-runtime.c | ||
dl-support.c | ||
dl-sym.c | ||
dl-tsd.c | ||
dl-version.c | ||
do-lookup.h | ||
do-rel.h | ||
dynamic-link.h | ||
elf.h | ||
failobj.c | ||
filter.c | ||
filtmod1.c | ||
filtmod2.c | ||
firstobj.c | ||
gen-trusted-dirs.awk | ||
genrtldtbl.awk | ||
global.c | ||
globalmod1.c | ||
initfirst.c | ||
interp.c | ||
lateglobal.c | ||
ldconfig.c | ||
ldd.bash.in | ||
link.h | ||
loadfail.c | ||
loadtest.c | ||
ltglobmod1.c | ||
ltglobmod2.c | ||
Makefile | ||
multiload.c | ||
neededobj1.c | ||
neededobj2.c | ||
neededobj3.c | ||
neededobj4.c | ||
neededobj5.c | ||
neededobj6.c | ||
neededtest2.c | ||
neededtest3.c | ||
neededtest4.c | ||
neededtest.c | ||
next.c | ||
nextmod1.c | ||
nextmod2.c | ||
nodel2mod1.c | ||
nodel2mod2.c | ||
nodel2mod3.c | ||
nodelete2.c | ||
nodelete.c | ||
nodelmod1.c | ||
nodelmod2.c | ||
nodelmod3.c | ||
nodelmod4.c | ||
nodlopen2.c | ||
nodlopen.c | ||
nodlopenmod2.c | ||
nodlopenmod.c | ||
noload.c | ||
order.c | ||
origtest.c | ||
pathoptobj.c | ||
preloadtest.c | ||
readlib.c | ||
reldep2.c | ||
reldep3.c | ||
reldep4.c | ||
reldep4mod1.c | ||
reldep4mod2.c | ||
reldep4mod3.c | ||
reldep4mod4.c | ||
reldep5.c | ||
reldep6.c | ||
reldep6mod0.c | ||
reldep6mod1.c | ||
reldep6mod2.c | ||
reldep6mod3.c | ||
reldep6mod4.c | ||
reldep7.c | ||
reldep7mod1.c | ||
reldep7mod2.c | ||
reldep8.c | ||
reldep8mod1.c | ||
reldep8mod2.c | ||
reldep8mod3.c | ||
reldep9.c | ||
reldep9mod1.c | ||
reldep9mod2.c | ||
reldep9mod3.c | ||
reldep.c | ||
reldepmod1.c | ||
reldepmod2.c | ||
reldepmod3.c | ||
reldepmod4.c | ||
reldepmod5.c | ||
reldepmod6.c | ||
resolvfail.c | ||
restest1.c | ||
restest2.c | ||
rtld-Rules | ||
rtld.c | ||
sln.c | ||
sofini.c | ||
soinit.c | ||
sprof.c | ||
testobj1_1.c | ||
testobj1.c | ||
testobj2.c | ||
testobj3.c | ||
testobj4.c | ||
testobj5.c | ||
testobj6.c | ||
testobj.h | ||
tls-macros.h | ||
tst-align.c | ||
tst-alignmod.c | ||
tst-array1.c | ||
tst-array1.exp | ||
tst-array2.c | ||
tst-array2.exp | ||
tst-array2dep.c | ||
tst-array3.c | ||
tst-array4.c | ||
tst-array4.exp | ||
tst-deep1.c | ||
tst-deep1mod1.c | ||
tst-deep1mod2.c | ||
tst-deep1mod3.c | ||
tst-dlmodcount.c | ||
tst-dlmopen1.c | ||
tst-dlmopen1mod.c | ||
tst-dlmopen2.c | ||
tst-dlopenrpath.c | ||
tst-dlopenrpathmod.c | ||
tst-execstack-mod.c | ||
tst-execstack-needed.c | ||
tst-execstack-prog.c | ||
tst-execstack.c | ||
tst-pathopt.c | ||
tst-pathopt.sh | ||
tst-pie1.c | ||
tst-piemod1.c | ||
tst-tls1-static.c | ||
tst-tls1.c | ||
tst-tls2-static.c | ||
tst-tls2.c | ||
tst-tls3.c | ||
tst-tls4.c | ||
tst-tls5.c | ||
tst-tls6.c | ||
tst-tls7.c | ||
tst-tls8.c | ||
tst-tls9-static.c | ||
tst-tls9.c | ||
tst-tls10.c | ||
tst-tls10.h | ||
tst-tls11.c | ||
tst-tls12.c | ||
tst-tls13.c | ||
tst-tls14.c | ||
tst-tlsmod1.c | ||
tst-tlsmod2.c | ||
tst-tlsmod3.c | ||
tst-tlsmod4.c | ||
tst-tlsmod5.c | ||
tst-tlsmod6.c | ||
tst-tlsmod7.c | ||
tst-tlsmod8.c | ||
tst-tlsmod9.c | ||
tst-tlsmod10.c | ||
tst-tlsmod11.c | ||
tst-tlsmod12.c | ||
tst-tlsmod13.c | ||
tst-tlsmod13a.c | ||
tst-tlsmod14a.c | ||
tst-tlsmod14b.c | ||
unload2.c | ||
unload2dep.c | ||
unload2mod.c | ||
unload.c | ||
unloadmod.c | ||
Versions | ||
vismain.c | ||
vismod1.c | ||
vismod2.c | ||
vismod3.c | ||
vismod.h |