|author||Rich Felker <firstname.lastname@example.org>||2016-01-25 19:29:55 -0500|
|committer||Rich Felker <email@example.com>||2016-01-25 19:29:55 -0500|
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.
Diffstat (limited to 'crt')
1 files changed, 1 insertions, 1 deletions
diff --git a/crt/rcrt1.c b/crt/rcrt1.c
index 9be117fd..e763d0ab 100644
@@ -1,7 +1,7 @@
#define START "_start"
#define _dlstart_c _start_c
void _init() __attribute__((weak));