From: Szabolcs Nagy Date: Tue, 18 Oct 2022 15:33:52 +0000 (+0100) Subject: Fix elf/tst-dlmopen-twice to support enough link namespaces X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae60f3996dc52bad4fd8ecb83315fa974549c0e6;p=thirdparty%2Fglibc.git Fix elf/tst-dlmopen-twice to support enough link namespaces The test dlmopens 10 namespaces recursively, which requires a glibc tunable setting, otherwise it may run out of static TLS. --- diff --git a/elf/Makefile b/elf/Makefile index 72178d33ffd..399b709a7da 100644 --- a/elf/Makefile +++ b/elf/Makefile @@ -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 diff --git a/elf/tst-dlmopen-twice.c b/elf/tst-dlmopen-twice.c index 70c71fe19c7..dfa58b1505d 100644 --- a/elf/tst-dlmopen-twice.c +++ b/elf/tst-dlmopen-twice.c @@ -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; }