about summary refs log tree commit diff
path: root/elf
diff options
context:
space:
mode:
authorSzabolcs Nagy <szabolcs.nagy@arm.com>2022-10-18 16:33:52 +0100
committerSzabolcs Nagy <szabolcs.nagy@arm.com>2022-10-28 18:43:58 +0100
commit2eeeee7636cb52a09740598404808def17cf750e (patch)
treebe285b2b6343ff94ef28ac3b9c31291ad6ee9d2d /elf
parentf9deea6f81cd5266ffb3d27e2584d609fef9b8d2 (diff)
downloadglibc-2eeeee7636cb52a09740598404808def17cf750e.tar.gz
glibc-2eeeee7636cb52a09740598404808def17cf750e.tar.xz
glibc-2eeeee7636cb52a09740598404808def17cf750e.zip
Fix elf/tst-dlmopen-twice not to exhaust static TLS
By default glibc only allocates enough static TLS for 4 link namespaces
including the initial one. So only use 3 dlmopens in the test.

Reviewed-by: Florian Weimer <fweimer@redhat.com>
Diffstat (limited to 'elf')
-rw-r--r--elf/tst-dlmopen-twice.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/elf/tst-dlmopen-twice.c b/elf/tst-dlmopen-twice.c
index 70c71fe19c..a8d7e5e081 100644
--- a/elf/tst-dlmopen-twice.c
+++ b/elf/tst-dlmopen-twice.c
@@ -46,8 +46,8 @@ do_test (void)
   recurse (1);
 
   /* Then with nesting.  The constant needs to be less than the
-     internal DL_NNS namespace constant.  */
-  recurse (10);
+     glibc.rtld.nns tunable (which is 4 by default).  */
+  recurse (3);
   return 0;
 }