glibc/elf
Ulrich Drepper bfc832ccf1 * elf/dl-close.c: Include stddef.h.
(_dl_close): If called recursively, just remember GC needs to be rerun
	and decrease l_direct_opencount.  Avoid GC if l_direct_opencount
	decreased to 1.  Rerun GC at the end if any destructor unloaded some
	additional libraries.
	* elf/Makefile: Add rules to build and run unload6 test.
	* elf/unload6.c: New test.
	* elf/unload6mod1.c: New file.
	* elf/unload6mod2.c: New file.
	* elf/unload6mod3.c: New file.

	* malloc/hooks.c (mem2chunk_check): Add magic_p argument, set *magic_p
	if magic_p is not NULL.
	(top_check): Invoke MALLOC_FAILURE_ACTION if MORECORE failed.
	(malloc_check): Fail if sz == -1.
	(free_check): Adjust mem2chunk_check caller.
	(realloc_check): Likewise.  Fail if bytes == -1.  If bytes == 0 and
	oldmem != NULL, call free_check and return NULL.  If reallocating
	and returning NULL, invert magic byte again to make oldmem valid
	region for further checking.
	(memalign_check): Fail if bytes == -1.
	* malloc/Makefile: Add rules to build and run tst-mcheck.
	* malloc/tst-mcheck.c: New test.
2005-04-27 01:39:11 +00:00
..
.cvsignore
cache.c * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion) 2005-04-07 20:57:41 +00:00
check-textrel.c 2.5-18.1 2007-07-12 18:26:36 +00:00
chroot_canon.c 2.5-18.1 2007-07-12 18:26:36 +00:00
circleload1.c * include/link.h (struct link_map): Remove l_opencount. Add l_removed. 2005-03-18 11:11:42 +00:00
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 * sysdeps/generic/ldsodefs.h (_dl_out_of_memory_internal): Remove decl. 2005-03-06 00:08:10 +00:00
dl-caller.c [BZ #77] 2004-10-14 02:08:23 +00:00
dl-close.c * elf/dl-close.c: Include stddef.h. 2005-04-27 01:39:11 +00:00
dl-conflict.c 2.5-18.1 2007-07-12 18:26:36 +00:00
dl-debug.c Update. 2005-01-09 08:29:25 +00:00
dl-deps.c * include/link.h (struct link_map): Remove l_opencount. Add l_removed. 2005-03-18 11:11:42 +00:00
dl-dst.h 2.5-18.1 2007-07-12 18:26:36 +00:00
dl-error.c * sysdeps/generic/ldsodefs.h (_dl_out_of_memory_internal): Remove decl. 2005-03-06 00:08:10 +00:00
dl-fini.c * elf/dl-fini.c (_dl_fini): Split sorting of the maps in separate 2005-03-19 07:22:23 +00:00
dl-init.c * csu/elf-init.c (__libc_csu_fini): Don't do anything here. 2005-01-06 22:40:27 +00:00
dl-iteratephdr.c 2.5-18.1 2007-07-12 18:26:36 +00:00
dl-libc.c * csu/elf-init.c (__libc_csu_fini): Don't do anything here. 2005-01-06 22:40:27 +00:00
dl-load.c * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h 2005-04-26 04:26:13 +00:00
dl-lookup.c * elf/dl-lookup.c (add_dependency): Always search l_initfini if 2005-03-19 09:10:45 +00:00
dl-minimal.c 2.5-18.1 2007-07-12 18:26:36 +00:00
dl-misc.c 2.5-18.1 2007-07-12 18:26:36 +00:00
dl-object.c * csu/elf-init.c (__libc_csu_fini): Don't do anything here. 2005-01-06 22:40:27 +00:00
dl-open.c * elf/dl-open.c (dl_open_worker): Fix typo. 2005-03-20 18:38:24 +00:00
dl-profile.c
dl-profstub.c
dl-reloc.c * iconvdata/ibm930.h: Correct Yen mapping. 2005-02-22 07:12:35 +00:00
dl-runtime.c (fixup): Change return type to DL_FIXUP_VALUE_TYPE. Use DL_FIXUP_VALUE_TYPE, DL_FIXUP_MAKE_VALUE and DL_FIXUP_VALUE_CODE_ADDR for relocation values. Use DL_FIXUP_VALUE_ADDR and DL_FIXUP_ADDR_VALUE to store and retrieve relocation values. (profile_fixup): Likewise. 2005-02-07 22:47:00 +00:00
dl-support.c * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion) 2005-04-07 20:57:41 +00:00
dl-sym.c * csu/elf-init.c (__libc_csu_fini): Don't do anything here. 2005-01-06 22:40:27 +00:00
dl-tsd.c 2.5-18.1 2007-07-12 18:26:36 +00:00
dl-version.c * elf/dl-version.c (match_symbol): Add namespace info to debug output. 2005-03-07 06:45:42 +00:00
do-lookup.h * include/link.h (struct link_map): Remove l_opencount. Add l_removed. 2005-03-18 11:11:42 +00:00
do-rel.h
dynamic-link.h * sysdeps/generic/wordexp.c (exec_comm_child): Add inline keyword. 2005-03-15 22:57:31 +00:00
elf.h 2005-03-22 Daniel Jacobowitz <dan@codesourcery.com> 2005-03-22 21:48:18 +00:00
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 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion) 2005-04-07 20:57:41 +00:00
ldd.bash.in * posix/getconf.c: Update copyright year. 2005-01-12 23:43:44 +00:00
link.h * csu/elf-init.c (__libc_csu_fini): Don't do anything here. 2005-01-06 22:40:27 +00:00
loadfail.c
loadtest.c * include/link.h (struct link_map): Remove l_opencount. Add l_removed. 2005-03-18 11:11:42 +00:00
ltglobmod1.c
ltglobmod2.c
Makefile * elf/dl-close.c: Include stddef.h. 2005-04-27 01:39:11 +00:00
multiload.c
neededobj1.c
neededobj2.c
neededobj3.c
neededobj4.c
neededobj5.c
neededobj6.c
neededtest2.c * include/link.h (struct link_map): Remove l_opencount. Add l_removed. 2005-03-18 11:11:42 +00:00
neededtest3.c * include/link.h (struct link_map): Remove l_opencount. Add l_removed. 2005-03-18 11:11:42 +00:00
neededtest4.c * include/link.h (struct link_map): Remove l_opencount. Add l_removed. 2005-03-18 11:11:42 +00:00
neededtest.c * include/link.h (struct link_map): Remove l_opencount. Add l_removed. 2005-03-18 11:11:42 +00:00
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
order2.c * elf/Makefile: Add rules to build and run order2. 2005-03-19 08:04:37 +00:00
order2mod1.c * elf/Makefile: Add rules to build and run order2. 2005-03-19 08:04:37 +00:00
order2mod2.c * elf/Makefile: Add rules to build and run order2. 2005-03-19 08:04:37 +00:00
order2mod3.c * elf/Makefile: Add rules to build and run order2. 2005-03-19 08:04:37 +00:00
order2mod4.c * elf/Makefile: Add rules to build and run order2. 2005-03-19 08:04:37 +00:00
order.c
origtest.c
pathoptobj.c
preloadtest.c
readlib.c 2.5-18.1 2007-07-12 18:26:36 +00:00
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 2005-04-26 Roland McGrath <roland@redhat.com> 2005-04-26 20:05:30 +00:00
rtld.c * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion) 2005-04-07 20:57:41 +00:00
sln.c
sofini.c 2.5-18.1 2007-07-12 18:26:36 +00:00
soinit.c 2.5-18.1 2007-07-12 18:26:36 +00:00
sprof.c * posix/getconf.c: Update copyright year. 2005-01-12 23:43:44 +00:00
testobj1_1.c
testobj1.c
testobj2.c * sysdeps/generic/ldsodefs.h (_dl_out_of_memory_internal): Remove decl. 2005-03-06 00:08:10 +00:00
testobj3.c
testobj4.c
testobj5.c
testobj6.c
testobj.h
tls-macros.h Add sparc64 TLS and NPTL support. 2005-04-14 21:46:37 +00:00
tst-align2.c Update. 2005-01-22 07:55:35 +00:00
tst-align.c
tst-alignmod2.c Update. 2005-01-22 07:55:35 +00:00
tst-alignmod.c
tst-array1-static.c * csu/elf-init.c (__libc_csu_fini): Enable if LIBC_NONSHARED 2005-02-14 21:25:50 +00:00
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-audit1.c * csu/elf-init.c (__libc_csu_fini): Don't do anything here. 2005-01-06 22:40:27 +00:00
tst-auditmod1.c * sysdeps/sparc/sparc32/dl-trampoline.S: New file. 2005-04-05 21:37:05 +00:00
tst-deep1.c
tst-deep1mod1.c
tst-deep1mod2.c
tst-deep1mod3.c
tst-dlmodcount.c
tst-dlmopen1.c [BZ #77] 2004-10-14 02:08:23 +00:00
tst-dlmopen1mod.c Update. 2004-10-27 20:27:40 +00:00
tst-dlmopen2.c [BZ #77] 2004-10-14 02:08:23 +00:00
tst-dlmopen3.c Update. 2004-10-28 06:53:20 +00:00
tst-dlopenrpath.c Update. 2004-10-11 10:16:31 +00:00
tst-dlopenrpathmod.c
tst-execstack-mod.c
tst-execstack-needed.c
tst-execstack-prog.c
tst-execstack.c
tst-global1.c [BZ #776] 2005-03-03 08:28:23 +00:00
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 2.5-18.1 2007-07-12 18:26:36 +00:00
tst-tls9-static.c
tst-tls9.c
tst-tls10.c
tst-tls10.h
tst-tls11.c
tst-tls12.c
tst-tls13.c 2.5-18.1 2007-07-12 18:26:36 +00:00
tst-tls14.c
tst-tls15.c [BZ #786] 2005-03-20 22:25:59 +00:00
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
tst-tlsmod15a.c [BZ #786] 2005-03-20 22:25:59 +00:00
tst-tlsmod15b.c [BZ #786] 2005-03-20 22:25:59 +00:00
unload2.c * include/link.h (struct link_map): Remove l_opencount. Add l_removed. 2005-03-18 11:11:42 +00:00
unload2dep.c
unload2mod.c
unload3.c [BZ #776] 2005-03-03 08:28:23 +00:00
unload3mod1.c [BZ #776] 2005-03-03 08:28:23 +00:00
unload3mod2.c [BZ #776] 2005-03-03 08:28:23 +00:00
unload3mod3.c [BZ #776] 2005-03-03 08:28:23 +00:00
unload3mod4.c * sysdeps/generic/ldsodefs.h (_dl_out_of_memory_internal): Remove decl. 2005-03-06 00:08:10 +00:00
unload4.c Test cases for correct unloading. 2005-03-18 10:54:53 +00:00
unload4mod1.c Test cases for correct unloading. 2005-03-18 10:54:53 +00:00
unload4mod2.c Test cases for correct unloading. 2005-03-18 10:54:53 +00:00
unload4mod3.c Test cases for correct unloading. 2005-03-18 10:54:53 +00:00
unload4mod4.c Test cases for correct unloading. 2005-03-18 10:54:53 +00:00
unload5.c Test cases for correct unloading. 2005-03-18 10:54:53 +00:00
unload6.c * elf/dl-close.c: Include stddef.h. 2005-04-27 01:39:11 +00:00
unload6mod1.c * elf/dl-close.c: Include stddef.h. 2005-04-27 01:39:11 +00:00
unload6mod2.c * elf/dl-close.c: Include stddef.h. 2005-04-27 01:39:11 +00:00
unload6mod3.c * elf/dl-close.c: Include stddef.h. 2005-04-27 01:39:11 +00:00
unload.c * include/link.h (struct link_map): Remove l_opencount. Add l_removed. 2005-03-18 11:11:42 +00:00
unloadmod.c
Versions * csu/elf-init.c (__libc_csu_fini): Don't do anything here. 2005-01-06 22:40:27 +00:00
vismain.c
vismod1.c
vismod2.c
vismod3.c
vismod.h