move dynamic linker to its own top-level directory, ldso
authorRich Felker <dalias@aerifal.cx>
Tue, 26 Jan 2016 00:29:55 +0000 (19:29 -0500)
committerRich Felker <dalias@aerifal.cx>
Tue, 26 Jan 2016 00:29:55 +0000 (19:29 -0500)
commit5552ce52000855906a5cb4f08f2e456573cca51f
tree7a6bd7fb987116843bfa9bd985dfb51f726cdd01
parent16f70388d4a876c216cbf1d829782ace41a07634
move dynamic linker to its own top-level directory, ldso

this eliminates the last need for the SHARED macro to control how
files in the src tree are compiled. the same code is used for both
libc.a and libc.so, with additional code for the dynamic linker (from
the new ldso tree) being added to libc.so but not libc.a. separate .o
and .lo object files still exist for the src tree, but the only
difference is that the .lo files are built as PIC.

in the future, if/when we add dlopen support for static-linked
programs, much of the code in dynlink.c may be moved back into the src
tree, but properly factored into separate source files. in that case,
the code in the ldso tree will be reduced to just the dynamic linker
entry point, self-relocation, and loading of libraries needed by the
main application.
Makefile
crt/rcrt1.c
ldso/dlstart.c [new file with mode: 0644]
ldso/dynlink.c [new file with mode: 0644]
src/ldso/dlstart.c [deleted file]
src/ldso/dynlink.c [deleted file]
src/ldso/tlsdesc.c