From patchwork Sun Jul 9 21:27:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 21485 Received: (qmail 13681 invoked by alias); 9 Jul 2017 21:27:22 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 13651 invoked by uid 89); 9 Jul 2017 21:27:21 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.4 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM, SPF_PASS autolearn=ham version=3.3.2 spammy=HX-Gm-Message-State:AIVw113O X-HELO: mail-pf0-f194.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=ewN5tALuTL+xudGN9s8+mrHAbfcCUzEMEPXZUyhkvxI=; b=DiLDUkQToNaMuSTmVPGbF9MbTYRqaEC6/tvS1TxWaJ2D3/6NFeGf6nL+Irds/jHGs8 gTw/cPLMdk4ZQd29xPnq4G6A9inK5ogbQLqT+BQToqf69091+zYrJ7zMdZIgprsOWgED 8sXoE5ztam5aPqCDQEJg3elfpJDGn9x/VctGXD9KGCbzw4/t2IWxJ2SPH6j5DIZI1twg UhdHiKdFxfAyCI9Lg0c0PNz4anVaF+Z19cY8dfkY/efcBhOAXEgvCR7k+c/nqPEDANtf 8J1W0hXQOpqvPHQEjMzC/1nq9/zKJiIZVttycpIkWtcGcVzdzyBFvRBZh0RGhRxvw0Sj K4Mg== X-Gm-Message-State: AIVw113O+YwqTFkOVBm8JEVHCVuyDwTD/mIT6DLWH7V1Ps0WNE5GEY7Q q3eDejLebADqqOkK X-Received: by 10.84.229.76 with SMTP id d12mr14760063pln.222.1499635638681; Sun, 09 Jul 2017 14:27:18 -0700 (PDT) Date: Sun, 9 Jul 2017 14:27:17 -0700 From: "H.J. Lu" To: GNU C Library Subject: [PATCH] x86-64: Test memmove_chk and memset_chk only in libc.so [BZ #21741] Message-ID: <20170709212717.GA10107@gmail.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.8.3 (2017-05-23) Since there are no multiarch versions of memmove_chk and memset_chk, test multiarch versions of memmove_chk and memset_chk only in libc.so. OK for master? H.J. [BZ #21741] * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list): Test memmove_chk and memset_chk only in libc.so. --- sysdeps/x86_64/multiarch/ifunc-impl-list.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sysdeps/x86_64/multiarch/ifunc-impl-list.c b/sysdeps/x86_64/multiarch/ifunc-impl-list.c index 7912dd0..909938e 100644 --- a/sysdeps/x86_64/multiarch/ifunc-impl-list.c +++ b/sysdeps/x86_64/multiarch/ifunc-impl-list.c @@ -57,6 +57,7 @@ __libc_ifunc_impl_list (const char *name, struct libc_ifunc_impl *array, __memcmp_ssse3) IFUNC_IMPL_ADD (array, i, memcmp, 1, __memcmp_sse2)) +#ifdef SHARED /* Support sysdeps/x86_64/multiarch/memmove_chk.c. */ IFUNC_IMPL (i, name, __memmove_chk, IFUNC_IMPL_ADD (array, i, __memmove_chk, @@ -86,6 +87,7 @@ __libc_ifunc_impl_list (const char *name, struct libc_ifunc_impl *array, __memmove_chk_sse2_unaligned_erms) IFUNC_IMPL_ADD (array, i, __memmove_chk, 1, __memmove_chk_erms)) +#endif /* Support sysdeps/x86_64/multiarch/memmove.c. */ IFUNC_IMPL (i, name, memmove, @@ -121,6 +123,7 @@ __libc_ifunc_impl_list (const char *name, struct libc_ifunc_impl *array, __memrchr_avx2) IFUNC_IMPL_ADD (array, i, memrchr, 1, __memrchr_sse2)) +#ifdef SHARED /* Support sysdeps/x86_64/multiarch/memset_chk.c. */ IFUNC_IMPL (i, name, __memset_chk, IFUNC_IMPL_ADD (array, i, __memset_chk, 1, @@ -145,6 +148,7 @@ __libc_ifunc_impl_list (const char *name, struct libc_ifunc_impl *array, HAS_ARCH_FEATURE (AVX512F_Usable), __memset_chk_avx512_no_vzeroupper) ) +#endif /* Support sysdeps/x86_64/multiarch/memset.c. */ IFUNC_IMPL (i, name, memset,