aboutsummaryrefslogtreecommitdiff
path: root/elf
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@redhat.com>2014-09-16 22:19:22 +0530
committerSiddhesh Poyarekar <siddhesh@redhat.com>2014-09-16 22:19:22 +0530
commit02657da2cf4457804ed938ee08b8316249126444 (patch)
treeafe1876cc19d2ff0e29c902784280791d2591b39 /elf
parent653b1080fad02725ab66e504a7bfeecf4347d7aa (diff)
downloadglibc-02657da2cf4457804ed938ee08b8316249126444.tar
glibc-02657da2cf4457804ed938ee08b8316249126444.tar.gz
glibc-02657da2cf4457804ed938ee08b8316249126444.tar.bz2
glibc-02657da2cf4457804ed938ee08b8316249126444.zip
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.
Diffstat (limited to 'elf')
-rw-r--r--elf/Makefile3
1 files changed, 1 insertions, 2 deletions
diff --git a/elf/Makefile b/elf/Makefile
index 25012cc2d8..e3bd69223a 100644
--- a/elf/Makefile
+++ b/elf/Makefile
@@ -354,8 +354,7 @@ $(objpfx)ld.so: $(objpfx)librtld.os $(ld-map)
mv -f $@.new $@
# interp.c exists just to get this string into the libraries.
-CFLAGS-interp.c = -D'RUNTIME_LINKER="$(rtlddir)/$(rtld-installed-name)"' \
- -DNOT_IN_libc=1
+CFLAGS-interp.c = -D'RUNTIME_LINKER="$(rtlddir)/$(rtld-installed-name)"'
$(objpfx)interp.os: $(common-objpfx)config.make
ifneq (ld.so,$(rtld-installed-name))