diff options
author | Carmelo Amoroso <carmelo.amoroso@st.com> | 2008-11-18 12:48:13 +0000 |
---|---|---|
committer | Carmelo Amoroso <carmelo.amoroso@st.com> | 2008-11-18 12:48:13 +0000 |
commit | 827c5f1b826b916a533c082e558fc7c6fc38de6d (patch) | |
tree | 8f4c4e4626d41801ececf13b9f06488e6ae98cb9 /libc/misc/elf/dl-core.c | |
parent | 933df87e4e9a8d7f6901dd0417b0006c5b132439 (diff) |
Move _dl_iterate_phdr into libc.so.0 and libc.a (as glibc does).
Currently we have an implementation in ld.so and libdl.a.
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Diffstat (limited to 'libc/misc/elf/dl-core.c')
-rw-r--r-- | libc/misc/elf/dl-core.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/libc/misc/elf/dl-core.c b/libc/misc/elf/dl-core.c new file mode 100644 index 000000000..b32dcf828 --- /dev/null +++ b/libc/misc/elf/dl-core.c @@ -0,0 +1,20 @@ +/* + * This contains all symbols and functions to support + * dynamic linking into static libc. + + * Copyright (c) 2008 STMicroelectronics Ltd + * Author: Carmelo Amoroso <carmelo.amoroso@st.com> + * + * Based on draft work by Peter S. Mazinger <ps.m@gmx.net> + * + * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. + * + */ + +#ifdef SHARED +#error "This file is not suitable for linking into dynamic libc" +#else +/* Include ldso symbols and functions used into static libc */ +#include "../../../ldso/ldso/dl-symbols.c" +#endif + |