From patchwork Thu Oct 5 13:51:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 114939 Delivered-To: patch@linaro.org Received: by 10.80.163.170 with SMTP id s39csp250742edb; Thu, 5 Oct 2017 06:51:46 -0700 (PDT) X-Received: by 10.99.108.132 with SMTP id h126mr13159585pgc.434.1507211506619; Thu, 05 Oct 2017 06:51:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507211506; cv=none; d=google.com; s=arc-20160816; b=ManrB1/qoagGvxhD9c67zbyTb1PbTvztQiBQPDyHa9LntDANhRFhh2bODr2Ked08Fj TyXQ1R7wn/Fi6vHUo8jWbjyd4OKL60YZB92AnPeg8Tk08g3lf1B1WsQweREB6KE/MOd7 bJP+dn5CBfh188GamYL08CtfcU56ciql4d+9FKGpVS3sPV8N/krJmOy9wlyGFDzMCpGc KBfVAWdVS8m2EkASouVIs9j4f4g2X5Z94x6hYXqUu8mUyApaX6LlWBm5PQeXIe1JaHIH koKVPal0EHbwaCk3U+HJuFqDqPkZ9M7XOXG7Ro7xq4/O9yAnVZCGs7mMF5zCOqVpD/kr isLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:to:from:delivered-to :sender:list-help:list-post:list-archive:list-subscribe :list-unsubscribe:list-id:precedence:mailing-list:dkim-signature :domainkey-signature:arc-authentication-results; bh=RC/ATDGehJqhCUCrVBY7shiXa5Iqmk3EZz/jcR9TaY8=; b=GHiIq8YGzKwwB0B6Hn4WHGpsuHWAC2i/iXYsXxyvrW4dO5e0hyz0qY64YAVryDBGQp 0p4pIjTKU4Tp/LRFUcQ6/Y9uuJncl0cvWuT9wetv8wmZ+9TKQC0ZAuh/VNkM2o3jws+8 TWOezl04EnxrFt8d95+E1MSq039XWPSO+XZwOP3n673TvHRgUBskXFLNW+oxus5Pj0e2 Ryu2Ig0Ru/r99V+JVXPV+BTeseD+fVyFNyweFfPZv7NcVs12N+b9DKYcevWLYF1enQR1 WyCC22UTEOtxn9nrNbHWSVFbxRhoKo0RRYRxRgoTo0EKTZgR3cCfr8HSgKj9FAb/MzOR AfDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=grV6DG+Q; spf=pass (google.com: domain of libc-alpha-return-85439-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=libc-alpha-return-85439-patch=linaro.org@sourceware.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id bi10si13779862plb.777.2017.10.05.06.51.46 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Oct 2017 06:51:46 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-return-85439-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=grV6DG+Q; spf=pass (google.com: domain of libc-alpha-return-85439-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=libc-alpha-return-85439-patch=linaro.org@sourceware.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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:in-reply-to :references; q=dns; s=default; b=LpebdeWFH+3h5V+jA0eyUcKPvo3Nj5H ZDz10yuAiLLe/hbBgrGFuewQeGHlmrYOjO4+URQp1bXkySE+Rkj0/xUz9dR/qNw7 LxwuBDxkDzmCfU5z4E1WCtTWLt9o55hCKXh1kq0PTVsgJa+HxRcRbuwJWzOxLusO 1QPLYaZabtTs= 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:in-reply-to :references; s=default; bh=MpPI5wtsp6O1eNaYSUeLbbmAIFM=; b=grV6D G+QoxSHCdfPjP3XreW3Ms1Ms2Clc56VIebhO6wHrY9AoilaA19l8UpwdouZdXQIJ rTVJCT5KSFEiofyvx2S7811brXswWDXfISTmlFOQOUKoE79rl2Z+ZWGsfVBrCmxj XinDvrRV4ak1GbDJYyxTYWobUhZyh+QcGdAF/4= Received: (qmail 130164 invoked by alias); 5 Oct 2017 13:51:27 -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 129659 invoked by uid 89); 5 Oct 2017 13:51:27 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.4 required=5.0 tests=BAYES_00, 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= X-HELO: mail-qk0-f172.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=RC/ATDGehJqhCUCrVBY7shiXa5Iqmk3EZz/jcR9TaY8=; b=UDob7VHfEID1XHxi569jfO3XSf6nqR+ezMfvT9YLfoQyYN1ERgyDaqPl2l6jGoDivn 2NPT9Egd7v1/eCS8T1BaYvWzJz0cMEMpnCuI5AFIu8x23wQDijjxgr1ST5m7Vp78+xvo 7+2cOgxg1agAVJ9xpPVujElqSmXcwScPA/yB0XdsQgVnzHz/0vMRpZcmlvTXYWUT/Yvx GxWT0QbjwGKWnSRoTPz0aXeVgnhaRUa2chUJF5aW8Y8cG6t/c2OEigsKCAmbGv7LH3J/ IrQKcTlBs5zn/U4Ml01Ls1mKsWW5La2Um2g1Y7pyhfRr0Z8eMYLf/J+TZ7S0I7oNcv1R 9z0w== X-Gm-Message-State: AMCzsaX11ACcdTjkrEXSi7KJtI/0F+fIBkfjx6Q4gXhxc0fD2+RCiS1W DPBlNKDkRAub7YpyGrOstBWy5mN4Tis= X-Google-Smtp-Source: AOwi7QCxe+VxSBo/GC8Buo8icfgG+4K5iCkrIWFTftQ7MF6+z2mwU4mWz9d3/dPuPsnrmpK78Y3m/A== X-Received: by 10.55.108.195 with SMTP id h186mr27861772qkc.18.1507211483155; Thu, 05 Oct 2017 06:51:23 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Subject: [PATCH 3/4] sparc: Use default memcpy for rtld objects Date: Thu, 5 Oct 2017 10:51:11 -0300 Message-Id: <1507211472-1194-3-git-send-email-adhemerval.zanella@linaro.org> In-Reply-To: <1507211472-1194-1-git-send-email-adhemerval.zanella@linaro.org> References: <1507211472-1194-1-git-send-email-adhemerval.zanella@linaro.org> Both SPARC support multiarch platforms (sparcv9 and sparc64) have the a default assembly implemented memcpy. Since it should not be any restriction about it them on the loader object and assuming they are faster than generic ones this patch uses them for rtld objects. Also, there is no indication neither on original patch [1] or in commit message why the generic one where used instead of the sparc optimized ones. Checked on sparc64-linux-gnu and sparcv9-linux-gnu. * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.S: New file. * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.S: Likewise. * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: Remove file. * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: Likewise. * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: Likewise. * sysdeps/sparc/sparc64/rtld-memcpy.c: Likewise. --- ChangeLog | 8 ++++++++ sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.S | 1 + sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c | 1 - sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c | 1 - sysdeps/sparc/sparc64/multiarch/rtld-memcpy.S | 1 + sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c | 1 - sysdeps/sparc/sparc64/rtld-memcpy.c | 3 --- 7 files changed, 10 insertions(+), 6 deletions(-) create mode 100644 sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.S delete mode 100644 sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c delete mode 100644 sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c create mode 100644 sysdeps/sparc/sparc64/multiarch/rtld-memcpy.S delete mode 100644 sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c delete mode 100644 sysdeps/sparc/sparc64/rtld-memcpy.c -- 2.7.4 diff --git a/sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.S b/sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.S new file mode 100644 index 0000000..8e524da --- /dev/null +++ b/sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.S @@ -0,0 +1 @@ +#include diff --git a/sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c b/sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c deleted file mode 100644 index 304ad4e..0000000 --- a/sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c +++ /dev/null @@ -1 +0,0 @@ -#include diff --git a/sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c b/sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c deleted file mode 100644 index 6f8386b..0000000 --- a/sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c +++ /dev/null @@ -1 +0,0 @@ -#include diff --git a/sysdeps/sparc/sparc64/multiarch/rtld-memcpy.S b/sysdeps/sparc/sparc64/multiarch/rtld-memcpy.S new file mode 100644 index 0000000..dc7e095 --- /dev/null +++ b/sysdeps/sparc/sparc64/multiarch/rtld-memcpy.S @@ -0,0 +1 @@ +#include diff --git a/sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c b/sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c deleted file mode 100644 index 2452575..0000000 --- a/sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c +++ /dev/null @@ -1 +0,0 @@ -#include "../rtld-memcpy.c" diff --git a/sysdeps/sparc/sparc64/rtld-memcpy.c b/sysdeps/sparc/sparc64/rtld-memcpy.c deleted file mode 100644 index 52f8302..0000000 --- a/sysdeps/sparc/sparc64/rtld-memcpy.c +++ /dev/null @@ -1,3 +0,0 @@ -#define NO_MEMPCPY_STPCPY_REDIRECT -#include -#include