summaryrefslogtreecommitdiff
path: root/ldso/ldso/sparc/resolve.S
blob: 57c4b680489cf0f7fc90590f0498db3d2a551916 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*
 * These are various helper routines that are needed to run an ELF image.
 */
#define COMPILE_ASM
#include "ld_sysdep.h"

.text
	.align 16

.globl _dl_linux_resolve
_dl_linux_resolve:
	/*
 	 * Call the resolver - pass the address of the PLT so that we can
	 * figure out which module we are in.
	 */
	mov %o7,%o1
	call  _dl_linux_resolver
	mov %g1,%o0

	jmpl %o0,%o7
	restore
.LFE2:

	.type	_dl_linux_resolve,#function
	.size _dl_linux_resolve,.LFE2-_dl_linux_resolve