From patchwork Fri Mar 1 15:31:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Liebler X-Patchwork-Id: 1050245 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-100349-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=linux.ibm.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="gmb7lQou"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 449tgX4cBmz9s47 for ; Sat, 2 Mar 2019 02:31:36 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:to:from:subject:date:mime-version:content-type :message-id; q=dns; s=default; b=doBiEf1M0TG5DMcxmRtcO6eU/rdNcge RAB7UxwLX0ygcSl0LrJxWH48O/LetTHdXEVNAhjKs6o4COzebAcXuNqzdFCZr66v /16RmGkQHmiGPITPZVSgmXw/1DWxrSRjjCAkerkIRpz7daPsPbHZnzh5Vd0nbdPI HjBWdeHKE+H0= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:to:from:subject:date:mime-version:content-type :message-id; s=default; bh=KFcL6/Nd5g3EGX9WaeehmnzaM94=; b=gmb7l Qou0r2ScwdkWNM74l7zgXvun6WtIKdWrUEygf6q3/Ox1GFMtTaIVjAKvwebnpVBM wFWR38qSJnoYiWcbsZ4dVdzbEzquDEW2MStRZRW54v5GXzR+NbVJEIYi43yle4fl MF+5ezZVS0CwdnRq/BJAm3wR11asGmNCM6JKx0= Received: (qmail 89041 invoked by alias); 1 Mar 2019 15:31:30 -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 89029 invoked by uid 89); 1 Mar 2019 15:31:30 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-27.6 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KHOP_DYNAMIC, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1444 X-HELO: mx0a-001b2d01.pphosted.com To: GNU C Library From: Stefan Liebler Subject: [PATCH COMMITTED] S390: Fix introduction of __wcscpy and weak wcscpy symbols. Date: Fri, 1 Mar 2019 16:31:19 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0 MIME-Version: 1.0 x-cbid: 19030115-4275-0000-0000-000003159EBC X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19030115-4276-0000-0000-00003823E994 Message-Id: Hi, The recent commit 81a14439417552324ec6ca71f65ddf8e7cdd51c7 has introduced __wcscpy, __GI___wcscpy and the weak alias wcscpy. This patch also introduces those symbols if glibc is build with CFLAGS="-march=z13" where the ifunc is omitted. Bye, Stefan ChangeLog: * sysdeps/s390/wcscpy-vx.S: Add strong aliases to __wcscpy, __GI___wcscpy and weak alias to wcscpy. commit cf473e4be0ce087a93db03fc4cd1a120dde4041a Author: Stefan Liebler Date: Thu Feb 28 12:18:02 2019 +0100 S390: Fix introduction of __wcscpy and weak wcscpy symbols. The recent commit 81a14439417552324ec6ca71f65ddf8e7cdd51c7 has introduced __wcscpy, __GI___wcscpy and the weak alias wcscpy. This patch also introduces those symbols if glibc is build with CFLAGS="-march=z13" where the ifunc is omitted. ChangeLog: * sysdeps/s390/wcscpy-vx.S: Add strong aliases to __wcscpy, __GI___wcscpy and weak alias to wcscpy. diff --git a/sysdeps/s390/wcscpy-vx.S b/sysdeps/s390/wcscpy-vx.S index e797fece6b..5fe110fd94 100644 --- a/sysdeps/s390/wcscpy-vx.S +++ b/sysdeps/s390/wcscpy-vx.S @@ -111,6 +111,10 @@ ENTRY(WCSCPY_Z13) END(WCSCPY_Z13) # if ! HAVE_WCSCPY_IFUNC -strong_alias (WCSCPY_Z13, wcscpy) +strong_alias (WCSCPY_Z13, __wcscpy) +weak_alias (__wcscpy, wcscpy) +# if defined SHARED && IS_IN (libc) +strong_alias (__wcscpy, __GI___wcscpy) +# endif # endif #endif