Browse Source

xtensa: ldso: drop unused address calculation from _dl_linux_resolve

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 <jcmvbkbc@gmail.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Max Filippov 9 years ago
parent
commit
4449e47c2b
1 changed files with 0 additions and 7 deletions
  1. 0 7
      ldso/ldso/xtensa/resolve.S

+ 0 - 7
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