summaryrefslogtreecommitdiff
path: root/include/dlfcn.h
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2019-08-09 15:26:23 -0400
committerRich Felker <dalias@aerifal.cx>2019-11-02 18:30:56 -0400
commit22daaea39f1cc5f7391f0a5cd84576ffb58c2860 (patch)
tree336711effd188b25691df5c5d21030578035ab65 /include/dlfcn.h
parentc0450320940c8c45f3847f2d0a22c0ebc545b291 (diff)
downloadmusl-22daaea39f1cc5f7391f0a5cd84576ffb58c2860.tar.gz
add time64 redirect for, and redirecting implementation of, dlsym
if symbols are being redirected to provide the new time64 ABI, dlsym must perform matching redirections; otherwise, it would poke a hole in the magic and return pointers to functions that are not safe to call from a caller using time64 types. rather than duplicating a table of redirections, use the time64 symbols present in libc's symbol table to derive the decision for whether a particular symbol needs to be redirected.
Diffstat (limited to 'include/dlfcn.h')
-rw-r--r--include/dlfcn.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/dlfcn.h b/include/dlfcn.h
index 78fb0733..13ab71dd 100644
--- a/include/dlfcn.h
+++ b/include/dlfcn.h
@@ -35,6 +35,10 @@ int dladdr(const void *, Dl_info *);
int dlinfo(void *, int, void *);
#endif
+#if _REDIR_TIME64
+__REDIR(dlsym, __dlsym_time64);
+#endif
+
#ifdef __cplusplus
}
#endif