]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix elf/tst-dlmopen-twice to support enough link namespaces
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Tue, 18 Oct 2022 15:33:52 +0000 (16:33 +0100)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Thu, 27 Oct 2022 13:46:48 +0000 (14:46 +0100)
The test dlmopens 10 namespaces recursively, which requires a glibc
tunable setting, otherwise it may run out of static TLS.

elf/Makefile
elf/tst-dlmopen-twice.c

index 72178d33ffd6ed6b9cfea423595b86316ab5efef..399b709a7daa1f38676ea08be72ec5fff82bf8f6 100644 (file)
@@ -2979,6 +2979,7 @@ tst-audit-tlsdesc-ENV = LD_AUDIT=$(objpfx)tst-auditmod-tlsdesc.so
 $(objpfx)tst-audit-tlsdesc-dlopen.out: $(objpfx)tst-auditmod-tlsdesc.so
 tst-audit-tlsdesc-dlopen-ENV = LD_AUDIT=$(objpfx)tst-auditmod-tlsdesc.so
 
+tst-dlmopen-twice-ENV = GLIBC_TUNABLES=glibc.rtld.nns=10
 $(objpfx)tst-dlmopen-twice.out: \
   $(objpfx)tst-dlmopen-twice-mod1.so \
   $(objpfx)tst-dlmopen-twice-mod2.so
index 70c71fe19c7d0bf9d46c3b84df962405eee67ce0..dfa58b1505d0906a2ef4122169638e8b676f2b70 100644 (file)
@@ -46,7 +46,7 @@ do_test (void)
   recurse (1);
 
   /* Then with nesting.  The constant needs to be less than the
-     internal DL_NNS namespace constant.  */
+     glibc.rtld.nns tunable (which is between 1 and DL_NNS).  */
   recurse (10);
   return 0;
 }