aboutsummaryrefslogtreecommitdiff
path: root/elf/tst-nodelete-opened.c
AgeCommit message (Collapse)AuthorFilesLines
2016-01-04Update copyright dates with scripts/update-copyrights.Joseph Myers1-1/+1
2015-07-16Add comment to clarify how the test can failSiddhesh Poyarekar1-0/+2
2015-07-16Set NODELETE flag when opening already open objects with RTLD_NODELETESiddhesh Poyarekar1-0/+67
The DF_1_NODELETE flag is set too late when opening a DSO, due to which, if a DSO is already open, subsequently opening it with RTLD_NODELETE fails to set the DF_1_NODELETE flag. This patch fixes this by setting the flag immediately after bumping the opencount. Verified on x86_64. [BZ #18676] * elf/tst-nodelete-opened.c: New test case. * elf/tst-nodelete-opened-lib.c: New test case module. * elf/Makefile (tests, modules-names): Use them. * elf/dl-open.c (dl_open_worker): Set DF_1_NODELETE flag early.