From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id CA0363858292; Fri, 28 Oct 2022 17:46:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CA0363858292 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666979184; bh=zOfAJJK6qfQkRI6wvNEuUlNcaR6a9Vlnc9dn9KAfEzs=; h=From:To:Subject:Date:From; b=ngCASNFHbAHHslLFVcpAy5bjO9w4vDkvgAovM+Hdmwx/VjyseMhaG5WigQ4tWQU3V 202pL79aJLayQ5+WbDGlVM2uvhdrcHO/sSfnfJU4MkKVCVnv7PcNq2TK1oLqYq9Idj AtDElASd8k6sQeZ4cYxFO8RCGQqHWqdqdd8Db0uo= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Adhemerval Zanella To: glibc-cvs@sourceware.org Subject: [glibc/azanella/clang] elf: Disable tst-dlopen-nodelete-reloc if compiler does not generate STB_GNU_UNIQUE X-Act-Checkin: glibc X-Git-Author: Adhemerval Zanella X-Git-Refname: refs/heads/azanella/clang X-Git-Oldrev: a5db85a4f6f2800b6621c4a61c03dc111164dde3 X-Git-Newrev: 40899a0836e273aff6d9533de2d525af62e14fc6 Message-Id: <20221028174624.CA0363858292@sourceware.org> Date: Fri, 28 Oct 2022 17:46:24 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=40899a0836e273aff6d9533de2d525af62e14fc6 commit 40899a0836e273aff6d9533de2d525af62e14fc6 Author: Adhemerval Zanella Date: Thu May 12 15:36:01 2022 -0300 elf: Disable tst-dlopen-nodelete-reloc if compiler does not generate STB_GNU_UNIQUE The test requires STB_GNU_UNIQUE symbols so NODELETE is propagated by do_lookup_unique. Diff: --- elf/Makefile | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/elf/Makefile b/elf/Makefile index cbd449fdcf..bb99743d2f 100644 --- a/elf/Makefile +++ b/elf/Makefile @@ -475,11 +475,15 @@ tests += \ valgrind-test \ # tests tests-cxx = \ - tst-dlopen-nodelete-reloc \ tst-nodelete \ tst-unique3 \ tst-unique4 \ # tests-cxx +ifeq (yes,$(config-gnu-unique-object)) +tests-cxx += \ + tst-dlopen-nodelete-reloc \ + # tests-cxx +endif tests += $(if $(CXX),$(tests-cxx)) @@ -945,6 +949,15 @@ modules-names += \ # modules-names modules-names-cxx = \ + tst-nodelete-rtldmod \ + tst-nodelete-uniquemod \ + tst-nodelete-zmod \ + tst-unique3lib \ + tst-unique3lib2 \ + tst-unique4lib \ + # modules-names-cxx +ifeq (yes,$(config-gnu-unique-object)) +modules-names-cxx += \ tst-dlopen-nodelete-reloc-mod1 \ tst-dlopen-nodelete-reloc-mod10 \ tst-dlopen-nodelete-reloc-mod11 \ @@ -962,13 +975,8 @@ modules-names-cxx = \ tst-dlopen-nodelete-reloc-mod7 \ tst-dlopen-nodelete-reloc-mod8 \ tst-dlopen-nodelete-reloc-mod9 \ - tst-nodelete-rtldmod \ - tst-nodelete-uniquemod \ - tst-nodelete-zmod \ - tst-unique3lib \ - tst-unique3lib2 \ - tst-unique4lib \ # modules-names-cxx +endif modules-names += \ $(if $(CXX),$(modules-names-cxx)) \