summaryrefslogtreecommitdiff
path: root/ldso/ldso/m68k/resolve.S
blob: 9b1a24c68a6bc8d7132e97e8e073b6e9bdd1faf7 (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
26
27
28
29
#if 0
#include <sysdep.h>
#endif
/*
 * These are various helper routines that are needed to run an ELF image.
 */

#ifdef NO_UNDERSCORE
#define __dl_linux_resolve _dl_linux_resolve
#define __dl_linux_resolver _dl_linux_resolver
#endif

.text
.even

.globl __dl_linux_resolve
	.type	__dl_linux_resolve,@function
__dl_linux_resolve:
	moveml	%a0/%a1,%sp@-
#ifdef __PIC__
	bsrl	__dl_linux_resolver@PLTPC
#else
	jbsr	__dl_linux_resolver
#endif
	moveml	%sp@+,%a0/%a1
	addql 	#8,%sp
	jmp	@(%d0)
.LFE2:
	.size __dl_linux_resolve,.LFE2-__dl_linux_resolve