diff options
author | Rich Felker <dalias@aerifal.cx> | 2018-09-05 12:43:34 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2018-09-05 14:05:14 -0400 |
commit | 9b95fd0944e4206949e90633c3fed088202810ec (patch) | |
tree | 4af9c66139abfef78854aca3200f836153727c23 /src/ldso/__dlsym.c | |
parent | 2de29bc994029b903a366b8a4a9f8c3c3ee2be90 (diff) | |
download | musl-9b95fd0944e4206949e90633c3fed088202810ec.tar.gz musl-9b95fd0944e4206949e90633c3fed088202810ec.tar.xz musl-9b95fd0944e4206949e90633c3fed088202810ec.zip |
define and use internal macros for hidden visibility, weak refs
this cleans up what had become widespread direct inline use of "GNU C" style attributes directly in the source, and lowers the barrier to increased use of hidden visibility, which will be useful to recovering some of the efficiency lost when the protected visibility hack was dropped in commit dc2f368e565c37728b0d620380b849c3a1ddd78f, especially on archs where the PLT ABI is costly.
Diffstat (limited to 'src/ldso/__dlsym.c')
-rw-r--r-- | src/ldso/__dlsym.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ldso/__dlsym.c b/src/ldso/__dlsym.c index 99aafdf9..bf99dff8 100644 --- a/src/ldso/__dlsym.c +++ b/src/ldso/__dlsym.c @@ -1,8 +1,7 @@ #include <dlfcn.h> #include "libc.h" -__attribute__((__visibility__("hidden"))) -void __dl_seterr(const char *, ...); +hidden void __dl_seterr(const char *, ...); static void *stub_dlsym(void *restrict p, const char *restrict s, void *restrict ra) { |