diff options
author | Rich Felker <dalias@aerifal.cx> | 2014-04-12 00:16:19 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2014-04-16 02:46:05 -0400 |
commit | f82b05c496b0597d35e437a15105ee796bc3a8d6 (patch) | |
tree | 63cc563a005bbfde2c2b35d09a8a7dde27b5b99f /include/fcntl.h | |
parent | 67dc1f311646c50f3f1c281b7c345bb45401f17d (diff) | |
download | musl-f82b05c496b0597d35e437a15105ee796bc3a8d6.tar.gz musl-f82b05c496b0597d35e437a15105ee796bc3a8d6.tar.xz musl-f82b05c496b0597d35e437a15105ee796bc3a8d6.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. (cherry picked from commit 83c98aac4c43f9571e8f92a1c795afe02c237d4b)
Diffstat (limited to 'include/fcntl.h')
0 files changed, 0 insertions, 0 deletions