From c628c2296392ed3bf2cb8d8470668e64fe53389f Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Fri, 4 Mar 2022 10:27:15 -0300 Subject: elf: Remove ldconfig kernel version check Now that it was removed on libc.so. --- sysdeps/generic/dl-cache.h | 2 +- sysdeps/generic/ldconfig.h | 14 ++++---------- 2 files changed, 5 insertions(+), 11 deletions(-) (limited to 'sysdeps/generic') diff --git a/sysdeps/generic/dl-cache.h b/sysdeps/generic/dl-cache.h index df385dc..93d4bea 100644 --- a/sysdeps/generic/dl-cache.h +++ b/sysdeps/generic/dl-cache.h @@ -95,7 +95,7 @@ struct file_entry_new uint32_t key, value; /* String table indices. */ }; }; - uint32_t osversion; /* Required OS version. */ + uint32_t osversion_unused; /* Required OS version (unused). */ uint64_t hwcap; /* Hwcap entry. */ }; diff --git a/sysdeps/generic/ldconfig.h b/sysdeps/generic/ldconfig.h index 94f008b..7cc898d 100644 --- a/sysdeps/generic/ldconfig.h +++ b/sysdeps/generic/ldconfig.h @@ -70,8 +70,7 @@ const char *glibc_hwcaps_subdirectory_name extern void add_to_cache (const char *path, const char *filename, const char *soname, int flags, - unsigned int osversion, unsigned int isa_level, - uint64_t hwcap, + unsigned int isa_level, uint64_t hwcap, struct glibc_hwcaps_subdirectory *); extern void init_aux_cache (void); @@ -79,28 +78,23 @@ extern void init_aux_cache (void); extern void load_aux_cache (const char *aux_cache_name); extern int search_aux_cache (struct stat *stat_buf, int *flags, - unsigned int *osversion, unsigned int *isa_level, char **soname); extern void add_to_aux_cache (struct stat *stat_buf, int flags, - unsigned int osversion, unsigned int isa_level, const char *soname); extern void save_aux_cache (const char *aux_cache_name); /* Declared in readlib.c. */ extern int process_file (const char *real_file_name, const char *file_name, - const char *lib, int *flag, - unsigned int *osversion, unsigned int *isa_level, - char **soname, int is_link, - struct stat *stat_buf); + const char *lib, int *flag, unsigned int *isa_level, + char **soname, int is_link, struct stat *stat_buf); extern char *implicit_soname (const char *lib, int flag); /* Declared in readelflib.c. */ extern int process_elf_file (const char *file_name, const char *lib, - int *flag, unsigned int *osversion, - unsigned int *isa_level, char **soname, + int *flag, unsigned int *isa_level, char **soname, void *file_contents, size_t file_length); /* Declared in chroot_canon.c. */ -- cgit v1.1