From patchwork Wed Feb 25 18:46:49 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 443601 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org 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 8A2C714010F for ; Thu, 26 Feb 2015 05:47:08 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass reason="1024-bit key; unprotected key" header.d=sourceware.org header.i=@sourceware.org header.b=L6uQ/ubj; dkim-adsp=none (unprotected policy); dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :content-type:content-transfer-encoding; q=dns; s=default; b=HWp SvSvkCebr1QfnAQjQtxS2F4kkmRb3zNGFbX7nTX+eG94QOWYsguxgLIQtrVjJzck hy1Zd4XmN/8aPvWX/3b5h+K6KacZgYoUvJhb6CWLMHVAWOa7/yKn+Jz+7oOyASiE CMM+mAsA0nvDCVNVR3lJ/WadSGKdpzglfuJlTIsc= 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:message-id:date:from:mime-version:to:subject :content-type:content-transfer-encoding; s=default; bh=6MsDViRmr AmfT/DMXgT7QdUKsYw=; b=L6uQ/ubjgbRU99qhrEIEjMu3vWkkzzKEHw4nWLycg 9VpEOxuzgYZau9DYZnjhD8XeIEB2ZVG2JEIIYroHWGmL5pF/is1g1o/jwVnzfjW9 TuDwpMkMNaKO8AReWAM34FK9ukGI6f/A4VKX8y+p68XUiifS/nNN3W5+3p9ynu/R 3c= Received: (qmail 82497 invoked by alias); 25 Feb 2015 18:47:02 -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 82486 invoked by uid 89); 25 Feb 2015 18:47:01 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL, BAYES_00, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: e24smtp05.br.ibm.com Message-ID: <54EE1899.2000805@linux.vnet.ibm.com> Date: Wed, 25 Feb 2015 15:46:49 -0300 From: Adhemerval Zanella User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: "GNU C. Library" Subject: [COMMITTED] [PATCH] powerpc: Fix memmove static build X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15022518-0033-0000-0000-000001DB3AC5 This patch fixes the missing "__memcpy_ppc" symbol for memmove-ppc64 object in static builds. Since memcpy ifunc is not enabled in static mode, the specialized symbols are not provided. The patch changed the it to just "__memcpy" instead. --- 2015-02-25 Adhemerval Zanella * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Define memcpy to __memcpy_ppc only for static builds. --- diff --git a/sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c b/sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c index a2d8790..b433a27 100644 --- a/sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c +++ b/sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c @@ -32,7 +32,9 @@ extern __typeof (memmove) __memmove_ppc attribute_hidden; #define MEMMOVE __memmove_ppc extern __typeof (memcpy) __memcpy_ppc attribute_hidden; -#define memcpy __memcpy_ppc +#ifdef SHARED +# define memcpy __memcpy_ppc +#endif #if IS_IN (libc) && defined(SHARED) # undef libc_hidden_builtin_def