about summary refs log tree commit diff
path: root/src/ldso
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2019-11-03 01:19:01 -0500
committerRich Felker <dalias@aerifal.cx>2019-11-03 01:19:01 -0500
commit028092b61f22db7cff57af16b72badbd8ac6332c (patch)
tree2ee4837be45a23c66129f09953d284826668d481 /src/ldso
parentd6dcfe4d0c58856690ecbad4cf191d7c9ee1a4a8 (diff)
downloadmusl-028092b61f22db7cff57af16b72badbd8ac6332c.tar.gz
musl-028092b61f22db7cff57af16b72badbd8ac6332c.tar.xz
musl-028092b61f22db7cff57af16b72badbd8ac6332c.zip
fix time64 link regression of dlsym stub for static-linked programs
in commit 22daaea39f1cc5f7391f0a5cd84576ffb58c2860, the
__dlsym_redir_time64 function providing the backend for __dlsym_time64
was defined only in the dynamic linker, and thus was undefined when
static linking a program referencing dlsym. use the same stub_dlsym
definition that provides __dlsym (the non-redirecting backend) for
static linked programs to provide it, conditional on _REDIR_TIME64.
Diffstat (limited to 'src/ldso')
-rw-r--r--src/ldso/__dlsym.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ldso/__dlsym.c b/src/ldso/__dlsym.c
index 8ac0a334..0384f97e 100644
--- a/src/ldso/__dlsym.c
+++ b/src/ldso/__dlsym.c
@@ -8,3 +8,7 @@ static void *stub_dlsym(void *restrict p, const char *restrict s, void *restrict
 }
 
 weak_alias(stub_dlsym, __dlsym);
+
+#if _REDIR_TIME64
+weak_alias(stub_dlsym, __dlsym_redir_time64);
+#endif