aboutsummaryrefslogtreecommitdiff
path: root/elf/Makefile
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2020-12-04 09:13:43 +0100
committerFlorian Weimer <fweimer@redhat.com>2020-12-04 09:16:41 +0100
commit73b6e50a22dea9ae6144beaaa675d2ac62c281ca (patch)
treebdc65b11a605da08ab1b424f197ff0e0feab5eee /elf/Makefile
parent785969a047ad2f23f758901c6816422573544453 (diff)
downloadglibc-73b6e50a22dea9ae6144beaaa675d2ac62c281ca.tar
glibc-73b6e50a22dea9ae6144beaaa675d2ac62c281ca.tar.gz
glibc-73b6e50a22dea9ae6144beaaa675d2ac62c281ca.tar.bz2
glibc-73b6e50a22dea9ae6144beaaa675d2ac62c281ca.zip
elf: Implement tail merging of strings in ldconfig
This simplifies the string table construction in elf/cache.c because there is no more need to keep track of offsets explicitly; the string table implementation does this internally. This change slightly reduces the size of the cache on disk. The file format does not change as a result. The strings are null-terminated, without explicit length, so tail merging is transparent to readers. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'elf/Makefile')
-rw-r--r--elf/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/elf/Makefile b/elf/Makefile
index 13320933f3..b28930432d 100644
--- a/elf/Makefile
+++ b/elf/Makefile
@@ -120,7 +120,8 @@ others-static += ldconfig
others += ldconfig
install-rootsbin += ldconfig
-ldconfig-modules := cache readlib xmalloc xstrdup chroot_canon static-stubs
+ldconfig-modules := cache readlib xmalloc xstrdup chroot_canon static-stubs \
+ stringtable
extra-objs += $(ldconfig-modules:=.o)
others-extras = $(ldconfig-modules)
endif