about summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2014-04-12 00:16:19 -0400
committerRich Felker <dalias@aerifal.cx>2014-04-12 00:16:19 -0400
commit83c98aac4c43f9571e8f92a1c795afe02c237d4b (patch)
tree97e9646a20cf560a7c70ff48fac7f6d564699684 /lib
parent73c870ed3209b68b5c8c350534508cc9d95a6bcb (diff)
downloadmusl-83c98aac4c43f9571e8f92a1c795afe02c237d4b.tar.gz
musl-83c98aac4c43f9571e8f92a1c795afe02c237d4b.tar.xz
musl-83c98aac4c43f9571e8f92a1c795afe02c237d4b.zip
use hidden visibility rather than protected for syscall internals
the use of visibility at all is purely an optimization to avoid the
need for the caller to load the GOT register or similar to prepare for
a call via the PLT. there is no reason for these symbols to be
externally visible, so hidden works just as well as protected, and
using protected visibility is undesirable due to toolchain bugs and
the lack of testing it receives.

in particular, GCC's microblaze target is known to generate symbolic
relocations in the GOT for functions with protected visibility. this
in turn results in a dynamic linker which crashes under any nontrivial
usage that requires making a syscall before symbolic relocations are
processed.
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions