From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1944) id 965733853573; Wed, 23 Nov 2022 14:40:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 965733853573 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1669214401; bh=9h4u99Fir9BE5W7Mj4rIQ3j1+DDwr10C3kd+TenI4bI=; h=From:To:Subject:Date:From; b=JHxlPbRX83K6b3CC6qkdGBDY5WAXG4E5WJ8NB9MXOGAYzQqyXhdDCdtTyXKJVse6a QYhfLdrPNu6IL8OXYkJYZMknatgbc78kFCFFFfV6u/aN4ZFvc2hoaCmXPXuI4YePsv ILbV76neMBD7KKLtS3NuJUed16QONSwKSKetQ+Zg= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Szabolcs Nagy To: glibc-cvs@sourceware.org Subject: [glibc/arm/morello/main] Fix elf/tst-dlmopen-twice to support enough link namespaces X-Act-Checkin: glibc X-Git-Author: Szabolcs Nagy X-Git-Refname: refs/heads/arm/morello/main X-Git-Oldrev: 69ecb7b4a3287e814d315e0bab05705be4d9a010 X-Git-Newrev: d4a845daaf05e22207243b69624def1ee59607ac Message-Id: <20221123144001.965733853573@sourceware.org> Date: Wed, 23 Nov 2022 14:40:01 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=d4a845daaf05e22207243b69624def1ee59607ac commit d4a845daaf05e22207243b69624def1ee59607ac Author: Szabolcs Nagy Date: Tue Oct 18 16:33:52 2022 +0100 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: --- elf/Makefile | 1 + elf/tst-dlmopen-twice.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/elf/Makefile b/elf/Makefile index 72178d33ff..399b709a7d 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 70c71fe19c..dfa58b1505 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; }