From 02657da2cf4457804ed938ee08b8316249126444 Mon Sep 17 00:00:00 2001 From: Siddhesh Poyarekar Date: Tue, 16 Sep 2014 22:19:22 +0530 Subject: Include .interp section only for libc.so Barring libc.so and libdl.so, none of the libraries have any entry points, so it is pointless to add a .interp section for them. The libdl.so entry point (in dlfcn/eval.c) is also defunct, so remove that file as well. Build tested for x86_64, ppc64 and s390x. I have not moved CFLAGS-interp.c to CPPFLAGS-interp.c isnce I'll be removing it completely in a follow-up patch. Siddhesh * Makerules (lib%.so): Don't include $(+interp) in prerequisites. * elf/Makefile (CFLAGS-interp.c): Don't define NOT_IN_libc. * dlfcn/eval.c: Remove file. --- Makerules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makerules') diff --git a/Makerules b/Makerules index 6b30e8ce58..695c9ab597 100644 --- a/Makerules +++ b/Makerules @@ -436,7 +436,7 @@ link-libc-deps = $(common-objpfx)libc.so $(common-objpfx)linkobj/libc.so \ # $(LDLIBS-%.so) may contain -l switches to generate run-time dependencies # on other shared objects. The linking with libc and ld.so is intended # to be as similar as possible to a default link with an installed libc. -lib%.so: lib%_pic.a $(+preinit) $(+postinit) $(+interp) $(link-libc-deps) +lib%.so: lib%_pic.a $(+preinit) $(+postinit) $(link-libc-deps) $(build-shlib) $(link-libc-args) define build-shlib-helper -- cgit v1.2.3