From patchwork Tue May 20 20:56:13 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 350871 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 63DCF140082 for ; Wed, 21 May 2014 06:57:09 +1000 (EST) 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:cc:subject:date:message-id:in-reply-to :references; q=dns; s=default; b=mseYE+6d9hjxV0wGYC4RZ/+Zh59y1gC 3qW6Gv8YgdXbn82BnBu6YeQ03ZhGxCwNj1jm1DdbWKFVSMpaXos9cgIgPlbqHOFA VKAhTyyOiY4mJBq+VqjnWMm95oi0KxYHyXzjlvW3K22MyMq/PFbTH03CYyFJiD5k YcD1z1RrXWUM= 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:cc:subject:date:message-id:in-reply-to :references; s=default; bh=2YDA4kqhZr9kSqUuBI1XXF9L7+M=; b=gKXc+ LoVpEk1SBNPgCViGBnmy7ZZ+q7b6G8N5du2iz313B9riAA10SVyuf7vHG2JuyN/6 oKE1/6+LWlRJ6EFOMTRAz5nO8rM3AjB0K1YkOY3lpz/u/TslMGXh68MdlgMRzQfN i44OyHvdWZxWzuqecL8cmvQLTmyMeAEap4+v2Y= Received: (qmail 17781 invoked by alias); 20 May 2014 20:56:56 -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 17719 invoked by uid 89); 20 May 2014 20:56:56 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL, BAYES_00, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, KAM_STOCKGEN, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=no version=3.3.2 X-HELO: mail-qc0-f181.google.com X-Received: by 10.224.73.136 with SMTP id q8mr60926004qaj.54.1400619413172; Tue, 20 May 2014 13:56:53 -0700 (PDT) From: Richard Henderson To: libc-alpha@sourceware.org Cc: marcus.shawcroft@gmail.com, Richard Henderson Subject: [PATCH 1/6] aarch64: Merge rtld_errno offset with memory reference Date: Tue, 20 May 2014 13:56:13 -0700 Message-Id: <1400619378-7262-2-git-send-email-rth@twiddle.net> In-Reply-To: <1400619378-7262-1-git-send-email-rth@twiddle.net> References: <1400619378-7262-1-git-send-email-rth@twiddle.net> From: Richard Henderson * sysdeps/unix/sysv/linux/aarch64/sysdep.h [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Fold add insn into str offset. --- sysdeps/unix/sysv/linux/aarch64/sysdep.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sysdeps/unix/sysv/linux/aarch64/sysdep.h b/sysdeps/unix/sysv/linux/aarch64/sysdep.h index d90ef25..8397ad3 100644 --- a/sysdeps/unix/sysv/linux/aarch64/sysdep.h +++ b/sysdeps/unix/sysv/linux/aarch64/sysdep.h @@ -117,9 +117,8 @@ # define SYSCALL_ERROR_HANDLER \ __local_syscall_error: \ adrp x1, C_SYMBOL_NAME(rtld_errno); \ - add x1, x1, #:lo12:C_SYMBOL_NAME(rtld_errno); \ neg w0, w0; \ - str w0, [x1]; \ + str w0, [x1, :lo12:C_SYMBOL_NAME(rtld_errno)]; \ mov x0, -1; \ RET; # else