unify static and dynamic libc init/fini code paths
authorRich Felker <dalias@aerifal.cx>
Thu, 12 Nov 2015 03:08:23 +0000 (22:08 -0500)
committerRich Felker <dalias@aerifal.cx>
Thu, 12 Nov 2015 03:08:23 +0000 (22:08 -0500)
commitad1cd43a86645ba2d4f7c8747240452a349d6bc1
treedb609558e4f10ed6554517d30b47bababec06c76
parent4aaf879eb08a22c501b43d8604e67614f7dbc55f
unify static and dynamic libc init/fini code paths

use weak definitions that the dynamic linker can override instead of
preprocessor conditionals on SHARED so that the same libc start and
exit code can be used for both static and dynamic linking.
src/env/__libc_start_main.c
src/exit/exit.c
src/ldso/dynlink.c