From patchwork Thu Oct 5 13:51:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 114942 Delivered-To: patch@linaro.org Received: by 10.80.163.170 with SMTP id s39csp251250edb; Thu, 5 Oct 2017 06:52:19 -0700 (PDT) X-Received: by 10.84.228.193 with SMTP id y1mr13758776pli.301.1507211539561; Thu, 05 Oct 2017 06:52:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507211539; cv=none; d=google.com; s=arc-20160816; b=engaSNt1VTtt5HubXzdcEoxnQKwsASSElCcF+A6BWUYQsmWVRGRlylqYZDBQ46zGUB ZUTgRZq3Lmwn08wkTrg+b+xdf60w06BrUIOlxpw0vpjbqgwpxJNVxYaq5Yyl/7GzR4OF iz3nDyI9nXMag9VNcjLtqBsI+xehxattsuFm/xouSJoitAJioqlFiX5VQkyEULi/oGCO LMYxnBY8liLfqEpKSk0TM040QKJjdBkPSK5mU+tAOJU9o3g/r7bpdtafQA0T1Oqn9J/H xxyA0MQ8Fv8nJlMJ5nft0NYIbbAZ9m4Lg8SpLiXri39RgpQHkvdqYIZg4quJavFyvy3S Me5w== 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=GZCTJq8XWYbeqgM1A5XNdX0ZAKSyNC4FKb5gUWaeyRg=; b=CyuzpsR7GglSm5gmYQXElaarBRtzGuXR2dVsESAqj/n/TT2rmNIeEg6Kj+rq19uwx/ VmQHHKwUck9oHt3KmnOr2DtJhU9RzHjkPB+Ny5eucCE6cKEnxYD5zZM1Ekp4sasaw7ZY dViZSxVAfRq7+9kk82MGWblVArJiGCbWBbUWjjL1xKPdL4lmKjsVLROi0bHkaS23r3Hw F/YOFwXsVZmrkYohtQaBubJywCMyf1Xg+BsOwh66FTDKnjmThhgfgK1XUjACf3gUvc88 OYC5r1qDvDIVdv5lMdW1y8B9g+eh/yKVUgO5MpyrSHHr2iqT9NT0EPlsPUXMyLynOJKR 2GHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=exJqBB2j; spf=pass (google.com: domain of libc-alpha-return-85442-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=libc-alpha-return-85442-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 p6si12835757pgq.629.2017.10.05.06.52.19 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Oct 2017 06:52:19 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-return-85442-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=exJqBB2j; spf=pass (google.com: domain of libc-alpha-return-85442-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=libc-alpha-return-85442-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=Ik5HzIduLTak6L8Wgy/HsHg5ZE9MlOU qhO+sBV70FVUpfMFuj8Ru95aImIKwZy78GkQAz2k9v1UGO0gxd5JYWht1VCZ860N 1Ljyr7NbfcvSzi+KbwV0abOiuI+kEVeOuVvbpZEK2JbjNMCSM+9YWdBz5fJMIO4+ 8kryxTCnbnZA= 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=ZWt1F/J3y78o62wp2T5XOjhLknw=; b=exJqB B2jYS2/ET+WUzqHgA6SGRd+o0Z0ylGvVT38gSLDn5QGPdbreFRZkDxO01ryhZiC2 rbK5ee7eouwNT+TrXxeeWSuggJ3tVifuRAPlfa6HPPVYUC9e5V4ma7Hoxpk138M+ B/slFlLGH5CL3S+hzvkD3eic0hPr/bih26UWHU= Received: (qmail 488 invoked by alias); 5 Oct 2017 13:51:28 -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 130901 invoked by uid 89); 5 Oct 2017 13:51:28 -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-f178.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=GZCTJq8XWYbeqgM1A5XNdX0ZAKSyNC4FKb5gUWaeyRg=; b=Yet6yTLKjCFKU7J9+u/kuQ7MCHVYJsH3FE6Wr2hol+C1tQdh88MrKlkHR6NYRwK8Fm fVvUxUKhkE7d+rBZCWY2jzt4sa4XnevMt9mH45/01aJgN2LPD78S1ji5oZXkD2KbtsG1 PqB/shpAaJlW1kcnETobSVn9v+AL+7HLNdvTq0dXgb7vVjnnHNi+tM1PSVSqe6HcbInw 9azH3/boiYMCTHs7YfRMs8NqKWk5nc6JsDLeD7ldqVElOkHp0uvSb+NQZf230HKPzvWx zplv7qXenFLwMZl3iv+KWyFMHN7laIHZBDUsFlrcxe6WmUjfdEaCGxfFvQNm+MFkZNuX 7bfQ== X-Gm-Message-State: AMCzsaV0yHNzPjeb9b32oTJRmcog8r2MNHI74TY7D92haM534xHUvu8w IHC76wQoKOah1QyueroJPc/I6JIqYes= X-Google-Smtp-Source: AOwi7QCDCItrUmL5Yqh7rJq7w0VKW5ew8OTtvORLKOuv3mZtP4eaA98r0TTXoBODqgKHpug+FNH/dA== X-Received: by 10.55.101.81 with SMTP id z78mr79568qkb.161.1507211484611; Thu, 05 Oct 2017 06:51:24 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Subject: [PATCH 4/4] sparc: Use default memset for rtld objects Date: Thu, 5 Oct 2017 10:51:12 -0300 Message-Id: <1507211472-1194-4-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 memset. 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-memset.S: New file. * sysdeps/sparc/sparc64/multiarch/rtld-memset.S: New file. * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: Remove file. * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: Likewise. * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: Likewise. * sysdeps/sparc/sparc64/rtld-memset.c: Likewise. --- ChangeLog | 8 ++++++++ sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.S | 1 + sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c | 1 - sysdeps/sparc/sparc32/sparcv9/rtld-memset.c | 1 - sysdeps/sparc/sparc64/multiarch/rtld-memset.S | 1 + sysdeps/sparc/sparc64/multiarch/rtld-memset.c | 1 - sysdeps/sparc/sparc64/rtld-memset.c | 1 - 7 files changed, 10 insertions(+), 4 deletions(-) create mode 100644 sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.S delete mode 100644 sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c delete mode 100644 sysdeps/sparc/sparc32/sparcv9/rtld-memset.c create mode 100644 sysdeps/sparc/sparc64/multiarch/rtld-memset.S delete mode 100644 sysdeps/sparc/sparc64/multiarch/rtld-memset.c delete mode 100644 sysdeps/sparc/sparc64/rtld-memset.c -- 2.7.4 diff --git a/sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.S b/sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.S new file mode 100644 index 0000000..6e02eeb --- /dev/null +++ b/sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.S @@ -0,0 +1 @@ +#include diff --git a/sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c b/sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c deleted file mode 100644 index f24ae88..0000000 --- a/sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c +++ /dev/null @@ -1 +0,0 @@ -#include diff --git a/sysdeps/sparc/sparc32/sparcv9/rtld-memset.c b/sysdeps/sparc/sparc32/sparcv9/rtld-memset.c deleted file mode 100644 index 49b29f5..0000000 --- a/sysdeps/sparc/sparc32/sparcv9/rtld-memset.c +++ /dev/null @@ -1 +0,0 @@ -#include diff --git a/sysdeps/sparc/sparc64/multiarch/rtld-memset.S b/sysdeps/sparc/sparc64/multiarch/rtld-memset.S new file mode 100644 index 0000000..e9f078e --- /dev/null +++ b/sysdeps/sparc/sparc64/multiarch/rtld-memset.S @@ -0,0 +1 @@ +#include diff --git a/sysdeps/sparc/sparc64/multiarch/rtld-memset.c b/sysdeps/sparc/sparc64/multiarch/rtld-memset.c deleted file mode 100644 index c01eb0b..0000000 --- a/sysdeps/sparc/sparc64/multiarch/rtld-memset.c +++ /dev/null @@ -1 +0,0 @@ -#include "../rtld-memset.c" diff --git a/sysdeps/sparc/sparc64/rtld-memset.c b/sysdeps/sparc/sparc64/rtld-memset.c deleted file mode 100644 index 55f3835..0000000 --- a/sysdeps/sparc/sparc64/rtld-memset.c +++ /dev/null @@ -1 +0,0 @@ -#include