elf: Unify old and new format cache handling code in ld.so
authorFlorian Weimer <fweimer@redhat.com>
Fri, 30 Oct 2020 10:57:59 +0000 (11:57 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Fri, 30 Oct 2020 13:12:14 +0000 (14:12 +0100)
commitde1a9197af7f67a89f929dcadb8ceca8c3846b1c
treee25480719444dc92f17d84f2e407a5c0c6b3078d
parentcb3a749a22a55645dc6a52659eea765300623f98
elf: Unify old and new format cache handling code in ld.so

struct file_entry_new starts with the fields of struct file_entry,
so the code can be shared if the size computation is made dynamic.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
elf/dl-cache.c
sysdeps/generic/dl-cache.h