diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2021-03-02 17:09:40 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2021-03-05 16:15:57 -0300 |
commit | 46b124f0b96cb8f11d76ddce7b8e36e59d8536a9 (patch) | |
tree | 1e328714bc6cc3baa54a6a1de9450ad950ba9afe | |
parent | 53d4441acf514e8d175eca03ab46501b0aafd2f1 (diff) | |
download | glibc-46b124f0b96cb8f11d76ddce7b8e36e59d8536a9.tar.gz |
elf: Use LFS and 64 bit time_t for installed programs
The patch enables for pldd, sprof, ldconfig, and sln.
Checked on i686-linux-gnu and x86_64-linux-gnu.
-rw-r--r-- | elf/Makefile | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/elf/Makefile b/elf/Makefile index b06bf6ca20..bad8594e64 100644 --- a/elf/Makefile +++ b/elf/Makefile @@ -79,6 +79,8 @@ ifeq (yes,$(have-loop-to-function)) CFLAGS-rtld.c += -fno-tree-loop-distribute-patterns endif +CFLAGS-pldd.c += -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64 + # Compile rtld itself without stack protection. # Also compile all routines in the static library that are elided from # the shared libc because they are in libc.a in the same way. @@ -663,14 +665,23 @@ $(objpfx)ldd: ldd.bash.in $(common-objpfx)soversions.mk \ mv -f $@.new $@ $(objpfx)sprof: $(libdl) +CFLAGS-sprof.c += -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64 $(objpfx)sln: $(sln-modules:%=$(objpfx)%.o) +CFLAGS-sln.c += -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64 $(objpfx)ldconfig: $(ldconfig-modules:%=$(objpfx)%.o) +include $(o-iterator) +define o-iterator-doit +$(foreach f,$(ldconfig-modules),$(objpfx)$(f)$(o)): CFLAGS += -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64 +endef +object-suffixes-left := $(all-object-suffixes) +include $(o-iterator) SYSCONF-FLAGS := -D'SYSCONFDIR="$(sysconfdir)"' CFLAGS-ldconfig.c += $(SYSCONF-FLAGS) -D'LIBDIR="$(libdir)"' \ - -D'SLIBDIR="$(slibdir)"' + -D'SLIBDIR="$(slibdir)"' \ + -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64 libof-ldconfig = ldconfig CFLAGS-dl-cache.c += $(SYSCONF-FLAGS) CFLAGS-cache.c += $(SYSCONF-FLAGS) |