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/thread/arm/__set_thread_area.c | |
parent | 2de29bc994029b903a366b8a4a9f8c3c3ee2be90 (diff) | |
download | musl-9b95fd0944e4206949e90633c3fed088202810ec.tar.gz musl-9b95fd0944e4206949e90633c3fed088202810ec.tar.bz2 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/thread/arm/__set_thread_area.c')
-rw-r--r-- | src/thread/arm/__set_thread_area.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/thread/arm/__set_thread_area.c b/src/thread/arm/__set_thread_area.c index daf496c2..09de65aa 100644 --- a/src/thread/arm/__set_thread_area.c +++ b/src/thread/arm/__set_thread_area.c @@ -5,7 +5,7 @@ #define HWCAP_TLS (1 << 15) -extern const unsigned char __attribute__((__visibility__("hidden"))) +extern hidden const unsigned char __a_barrier_oldkuser[], __a_barrier_v6[], __a_barrier_v7[], __a_cas_v6[], __a_cas_v7[], __a_gettp_cp15[]; @@ -22,8 +22,7 @@ extern const unsigned char __attribute__((__visibility__("hidden"))) #define __a_gettp_kuser 0xffff0fe0 #define __a_gettp_cp15 (uintptr_t)__a_gettp_cp15 -extern uintptr_t __attribute__((__visibility__("hidden"))) - __a_barrier_ptr, __a_cas_ptr, __a_gettp_ptr; +extern hidden uintptr_t __a_barrier_ptr, __a_cas_ptr, __a_gettp_ptr; int __set_thread_area(void *p) { |