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 Netto X-Patchwork-Id: 5285 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