Skip to content

Commit

Permalink
Don't define weak dlsym
Browse files Browse the repository at this point in the history
  • Loading branch information
cataphract committed Feb 15, 2024
1 parent 17e63c4 commit c97414d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion libddwaf.version
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
global: ddwaf_*;ceilf;dlsym;__dlsym_time64;
global: ddwaf_*;ceilf;__dlsym_time64;
local: *;
};
8 changes: 2 additions & 6 deletions src/glibc-compat/time64.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,8 @@ int __pthread_cond_timedwait_time64(void *cond, void *mutex, void *abstime) {
return __pthread_cond_timedwait64(cond, mutex, abstime);
}

__attribute__((weak, visibility("default")))
void *dlsym(void * handle, const char *name) {
(void) handle;
(void) name;
abort();
}
void *dlsym(void * handle, const char *name);

__attribute__((weak, visibility("default")))
void *__dlsym_time64(void *handle, const char *name) {
return dlsym(handle, name);
Expand Down

0 comments on commit c97414d

Please sign in to comment.