diff options
author | Rich Felker <dalias@aerifal.cx> | 2019-03-03 12:12:59 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2019-03-03 12:42:16 -0500 |
commit | e612d094b1d27e1d61940e58d8aaeb249c54e768 (patch) | |
tree | 88f894c3d7df19e6ef152fac878d7d0b01b5f0c8 /src/thread/syscall_cp.c | |
parent | 2f1f51ae7b2d78247568e7fdb8462f3c19e469a4 (diff) | |
download | musl-e612d094b1d27e1d61940e58d8aaeb249c54e768.tar.gz |
avoid malloc of deps array for programs with no external deps
traditionally, we've provided a guarantee that dynamic-linked
applications with no external dependencies (nothing but libc) and no
thread-local storage have no failure paths before the entry point.
normally, thanks to reclaim_gaps, such a malloc will not require a
syscall anyway, but if segment alignment is unlucky, it might. use a
builtin array for this common special case.
Diffstat (limited to 'src/thread/syscall_cp.c')
0 files changed, 0 insertions, 0 deletions