From patchwork Sat Mar 2 22:06:18 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Gabriel F. T. Gomes" X-Patchwork-Id: 1050733 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-100387-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=inconstante.eti.br Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="uGj829LH"; 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 44BgNr1Dz8z9s5R for ; Sun, 3 Mar 2019 09:06:35 +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:from:to:subject:date:message-id:mime-version :content-type; q=dns; s=default; b=rZBws3DYVa+KTWigIUuXuXFssbWSo RysbJUrcoFhdjDQk/nJMXDKx6Ij01icCVZTAwRMqLzSU4t6agcZMUZCCEZUJA5bC TIrnmw6NPeDROSCF8gxiwTEdyWkoor1MWUraOB3CWe9wZpCdceD3wvzFpDvEEKPz /6MMUvqz4tbZ+E= 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:from:to:subject:date:message-id:mime-version :content-type; s=default; bh=DjIDtdUL+aYWAutS2l5kOXSffm8=; b=uGj 829LHzbY37tTg8kS5jJ/lnJtMF2nNFx6OzVEPu+4xwB/L8eY4Ow73odbUNKt+1QG nfw/dG6GWFkra3m/zJRnrBkyMM1ULjSM8HplqM7wrUl+Ie2WCa9Qm7QgxZBvalO/ oxT/uUzti6l0Xm6ELPrNlIxqwzbydBG+A9UpPHUI= Received: (qmail 110837 invoked by alias); 2 Mar 2019 22:06:29 -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 110825 invoked by uid 89); 2 Mar 2019 22:06:29 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-25.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_LAZY_DOMAIN_SECURITY autolearn=ham version=3.3.2 spammy=HX-Envelope-From:sk:gabriel, 2145, 2.14.5, bind X-HELO: smtpout1.mo528.mail-out.ovh.net From: "Gabriel F. T. Gomes" To: , , Subject: [PATCH] powerpc: Fix build of wcscpy with --disable-multi-arch Date: Sat, 2 Mar 2019 19:06:18 -0300 Message-ID: <20190302220618.706-1-gabriel@inconstante.eti.br> MIME-Version: 1.0 X-Ovh-Tracer-Id: 18329650486068825795 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedutddrvdejgdduieduucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenuc Since the commit commit 81a14439417552324ec6ca71f65ddf8e7cdd51c7 Author: Adhemerval Zanella Date: Tue Feb 5 17:35:12 2019 -0200 wcsmbs: optimize wcscat powerpc64 and powerpc64le builds fail when configured with --disable-multi-arch, due to an undefined reference to __GI___wcscpy. This patch fixes this on sysdeps/powerpc/powerpc64/power6/wcscpy.c, which is only used when multi-arch is disabled. This patch does nothing for the failures on 32-bits powerpc builds, because the file is under the powerpc64 subdirectory, however, powerpc builds were already failing with --disable-multi-arch, with multiple error messages, even before the aforementioned commit. Tested for powerpc, powerpc64, and powerpc64le with multi-arch enabled (all pass) and disabled (powerpc still fails as explained above). * sysdeps/powerpc/powerpc64/power6/wcscpy.c (WCSCPY): Define to __wcscpy, then use libc_hidden_def and weak_alias to bind it to __GI___wcscpy and wcscpy. --- sysdeps/powerpc/powerpc64/power6/wcscpy.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sysdeps/powerpc/powerpc64/power6/wcscpy.c b/sysdeps/powerpc/powerpc64/power6/wcscpy.c index 722c8f995b..59cfb28832 100644 --- a/sysdeps/powerpc/powerpc64/power6/wcscpy.c +++ b/sysdeps/powerpc/powerpc64/power6/wcscpy.c @@ -1 +1,4 @@ +#define WCSCPY __wcscpy #include +libc_hidden_def (__wcscpy) +weak_alias (__wcscpy, wcscpy)