From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1944) id 15A9C387688F; Thu, 27 Oct 2022 13:50:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 15A9C387688F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666878603; bh=JI8duhE1tm/wBB4jmgF0HG0CgUk0YDKgEgFzLhs1fV8=; h=From:To:Subject:Date:From; b=W4iit20lYzcq4dO/1hdySerQMU2a2xB+6/sY88yNwde0Ek5rV87U2sgpzwjasFv2x mvQ0yIXn4/+NAOEAHNHi9BzRW71Q2v0bPy3ZjkXOhVPvfqO8OMsPlsLLOO9rBAYVaY IKv8A2fg7n46aCxcx7S+60kmXVDyjFJcUJR20X9Q= 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: b30fd928ac8f272dccb232cea47233c03f8f142d X-Git-Newrev: ae60f3996dc52bad4fd8ecb83315fa974549c0e6 Message-Id: <20221027135003.15A9C387688F@sourceware.org> Date: Thu, 27 Oct 2022 13:50:03 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=ae60f3996dc52bad4fd8ecb83315fa974549c0e6 commit ae60f3996dc52bad4fd8ecb83315fa974549c0e6 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; }