diff options
author | Siddhesh Poyarekar <siddhesh@redhat.com> | 2014-09-16 22:19:22 +0530 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@redhat.com> | 2014-09-16 22:19:22 +0530 |
commit | 02657da2cf4457804ed938ee08b8316249126444 (patch) | |
tree | afe1876cc19d2ff0e29c902784280791d2591b39 /elf | |
parent | 653b1080fad02725ab66e504a7bfeecf4347d7aa (diff) | |
download | glibc-02657da2cf4457804ed938ee08b8316249126444.tar.gz glibc-02657da2cf4457804ed938ee08b8316249126444.tar.xz 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/Makefile | 3 |
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)) |