From 827c5f1b826b916a533c082e558fc7c6fc38de6d Mon Sep 17 00:00:00 2001 From: Carmelo Amoroso Date: Tue, 18 Nov 2008 12:48:13 +0000 Subject: 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 --- libc/misc/elf/dl-core.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 libc/misc/elf/dl-core.c (limited to 'libc/misc/elf/dl-core.c') 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 + * + * Based on draft work by Peter S. Mazinger + * + * 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 + -- cgit v1.2.3