define and use internal macros for hidden visibility, weak refs
authorRich Felker <dalias@aerifal.cx>
Wed, 5 Sep 2018 16:43:34 +0000 (12:43 -0400)
committerRich Felker <dalias@aerifal.cx>
Wed, 5 Sep 2018 18:05:14 +0000 (14:05 -0400)
commit9b95fd0944e4206949e90633c3fed088202810ec
tree4af9c66139abfef78854aca3200f836153727c23
parent2de29bc994029b903a366b8a4a9f8c3c3ee2be90
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.
38 files changed:
arch/arm/atomic_arch.h
arch/arm/pthread_arch.h
arch/mips/syscall_arch.h
arch/mipsn32/syscall_arch.h
arch/sh/atomic_arch.h
crt/crt1.c
crt/rcrt1.c
ldso/dlstart.c
ldso/dynlink.c
src/env/__init_tls.c
src/env/__libc_start_main.c
src/env/__stack_chk_fail.c
src/exit/abort.c
src/exit/exit.c
src/internal/fdpic_crt.h
src/internal/libc.h
src/internal/malloc_impl.h
src/internal/sh/__shcall.c
src/internal/syscall.h
src/internal/version.c
src/ldso/__dlsym.c
src/ldso/dl_iterate_phdr.c
src/ldso/dlclose.c
src/ldso/dlerror.c
src/ldso/dlinfo.c
src/ldso/dlopen.c
src/ldso/tlsdesc.c
src/multibyte/internal.h
src/signal/sigaction.c
src/signal/sigsetjmp_tail.c
src/thread/__syscall_cp.c
src/thread/__tls_get_addr.c
src/thread/arm/__set_thread_area.c
src/thread/pthread_attr_setinheritsched.c
src/thread/pthread_cancel.c
src/thread/sh/__set_thread_area.c
src/thread/sh/__unmapself.c
src/thread/x32/syscall_cp_fixup.c