path: root/src/ldso/tlsdesc.c
diff options
authorRich Felker <>2016-01-25 19:29:55 -0500
committerRich Felker <>2016-01-25 19:29:55 -0500
commit5552ce52000855906a5cb4f08f2e456573cca51f (patch)
tree7a6bd7fb987116843bfa9bd985dfb51f726cdd01 /src/ldso/tlsdesc.c
parent16f70388d4a876c216cbf1d829782ace41a07634 (diff)
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, with additional code for the dynamic linker (from the new ldso tree) being added to 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.
Diffstat (limited to 'src/ldso/tlsdesc.c')
1 files changed, 0 insertions, 4 deletions
diff --git a/src/ldso/tlsdesc.c b/src/ldso/tlsdesc.c
index 4bc654fa..a2985cb6 100644
--- a/src/ldso/tlsdesc.c
+++ b/src/ldso/tlsdesc.c
@@ -1,5 +1,3 @@
-#ifdef SHARED
#include <stddef.h>
#include "libc.h"
@@ -12,5 +10,3 @@ ptrdiff_t __tlsdesc_static()
weak_alias(__tlsdesc_static, __tlsdesc_dynamic);