diff options
author | Rich Felker <dalias@aerifal.cx> | 2015-09-21 21:47:50 +0000 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2015-09-21 21:47:50 +0000 |
commit | 3958144ede01a7e64a56c0430f053bfd80ff02eb (patch) | |
tree | c99ab3049f5b6d2821e0891aa046083070c75082 /src/string/strlcat.c | |
parent | d874064579f4dd8150b0d6ff6d98942af6fcd1c3 (diff) | |
download | musl-3958144ede01a7e64a56c0430f053bfd80ff02eb.tar.gz |
factor symbol counting out of dladdr as its own function
the fdpic code will need to count symbols, and it may be useful
elsewhere in the future too. counting is trivial as long as sysv hash
is present, but for gnu-hash-only libraries it's complex.
the behavior of the count is changed slightly: we now include symbols
that are not accessible by the gnu hash table in the count. this may
make dladdr slightly slower. if this is a problem, dladdr can subtract
out the part that should not be accessible. unlike in the old code,
subtracting this out is easy even in the fast path where sysv hash is
available too.
Diffstat (limited to 'src/string/strlcat.c')
0 files changed, 0 insertions, 0 deletions