summaryrefslogtreecommitdiffhomepage
path: root/src/ldso/nt64/dlsym.s
blob: 0677d8c785852fbc81f37b39c14debbbc6a4d90b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
############################################################################
##  mmglue: midipix architecture- and target-specific bits for musl libc  ##
##  Copyright (C) 2013--2025  SysDeer Technologies, LLC                   ##
##  Released under GPLv2 and GPLv3; see COPYING.MMGLUE.                   ##
############################################################################

.text
.global dlsym

.def dlsym; .scl 2; .type 32; .endef

dlsym:
	movq  (%rsp),%r8  # original return address as third parameter
	jmp   __dlsym

	.section .got$dlsym,"r"
	.global __imp_dlsym
__imp_dlsym:
	.quad     dlsym
	.linkonce discard