From patchwork Sat Jan 10 03:48:37 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Filippov X-Patchwork-Id: 427328 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id B41F814012C for ; Sat, 10 Jan 2015 14:49:07 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id BD51F32F79; Sat, 10 Jan 2015 03:49:05 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zAc8RGmzU7QF; Sat, 10 Jan 2015 03:49:03 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id E5F2530738; Sat, 10 Jan 2015 03:49:02 +0000 (UTC) X-Original-To: uclibc@lists.busybox.net Delivered-To: uclibc@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id EFC791BF863 for ; Sat, 10 Jan 2015 03:49:00 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id E7E0387BEA for ; Sat, 10 Jan 2015 03:49:00 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FJgH8VGqvUR3 for ; Sat, 10 Jan 2015 03:49:00 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-lb0-f177.google.com (mail-lb0-f177.google.com [209.85.217.177]) by whitealder.osuosl.org (Postfix) with ESMTPS id 3F6AC8781C for ; Sat, 10 Jan 2015 03:49:00 +0000 (UTC) Received: by mail-lb0-f177.google.com with SMTP id b6so10955250lbj.8 for ; Fri, 09 Jan 2015 19:48:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=bg8KUm4kAWkZNBiAlXmZGJFsWgsMMTwtnD3U+/iDO3I=; b=lHldfa1Ck21iej+5bYCgvyjIBOiCnYBfUaZoi1HZQVsCOXM6xectDCud0HJXjuvoaB qt2LgzeqvyYdmABWuU3g8Zy6FBXkPU5p2JE322t0ZRPjoPM7lDiObjFEPQcSZ5AW0Ud+ VXaY+x3DJouyhWM5hgs7dEmFDva3lZStZyU9i/rmoTWNmIh1NisO4L46p1jIQ+dXeJPS luhrpxnpvc9CJfJSVdG2FDDHT1LBzTyEsfRpw1Z9JV/0KTO/M0ZoCqN3ANMujyvvqP/1 J+7B7kAyg1gV/zTAAYRZaKqqJM7ZvHWXecJrm7HiXQ3HhoY5Pfajgj6pc4kUwQevJ3YA DD0w== X-Received: by 10.112.198.233 with SMTP id jf9mr25469233lbc.9.1420861738528; Fri, 09 Jan 2015 19:48:58 -0800 (PST) Received: from octofox.metropolis ([5.19.183.212]) by mx.google.com with ESMTPSA id ss8sm2288930lbb.22.2015.01.09.19.48.56 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Jan 2015 19:48:57 -0800 (PST) From: Max Filippov To: uclibc@uclibc.org Subject: [PATCH] xtensa: ldso: drop unused address calculation from _dl_linux_resolve Date: Sat, 10 Jan 2015 06:48:37 +0300 Message-Id: <1420861717-22255-1-git-send-email-jcmvbkbc@gmail.com> X-Mailer: git-send-email 1.8.1.4 Cc: linux-xtensa@linux-xtensa.org X-BeenThere: uclibc@uclibc.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Discussion and development of uClibc \(the embedded C library\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: uclibc-bounces@uclibc.org Sender: "uClibc" The result of the calculation in register a12 is never used as the function _dl_linux_resolver only accepts 2 arguments. Drop it. Signed-off-by: Max Filippov --- ldso/ldso/xtensa/resolve.S | 7 ------- 1 file changed, 7 deletions(-) diff --git a/ldso/ldso/xtensa/resolve.S b/ldso/ldso/xtensa/resolve.S index d1ae8aa..8061af2 100644 --- a/ldso/ldso/xtensa/resolve.S +++ b/ldso/ldso/xtensa/resolve.S @@ -31,13 +31,6 @@ .global _dl_linux_resolve .type _dl_linux_resolve, @function _dl_linux_resolve: - /* Fix up the high 2 bits of the return address. */ - movi a13, 0f - slli a12, a0, 2 -0: extui a13, a13, 30, 2 - ssai 2 - src a12, a13, a12 - /* Call the fixup function. */ movi a8, _dl_linux_resolver callx8 a8