Blame src/ldso/nt64/dlsym.s

8b6d8f
############################################################################
8b6d8f
##  mmglue: midipix architecture- and target-specific bits for musl libc  ##
8b6d8f
##  Copyright (C) 2013--2025  SysDeer Technologies, LLC                   ##
8b6d8f
##  Released under GPLv2 and GPLv3; see COPYING.MMGLUE.                   ##
8b6d8f
############################################################################
8b6d8f
8b6d8f
.text
8b6d8f
.global dlsym
8b6d8f
8b6d8f
.def dlsym; .scl 2; .type 32; .endef
8b6d8f
8b6d8f
dlsym:
8b6d8f
	movq  (%rsp),%r8  # original return address as third parameter
8b6d8f
	jmp   __dlsym
8b6d8f
8b6d8f
	.section .got$dlsym,"r"
8b6d8f
	.global __imp_dlsym
8b6d8f
__imp_dlsym:
8b6d8f
	.quad     dlsym
8b6d8f
	.linkonce discard