aboutsummaryrefslogtreecommitdiff
path: root/elf/ldconfig.c
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2022-03-04 10:27:15 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2022-05-16 15:03:49 -0300
commitc628c2296392ed3bf2cb8d8470668e64fe53389f (patch)
tree9b81205495c9f84e216555e5630ece715a1c1523 /elf/ldconfig.c
parentb46d250656794e63a2946c481fda29271342dd1a (diff)
downloadglibc-c628c2296392ed3bf2cb8d8470668e64fe53389f.zip
glibc-c628c2296392ed3bf2cb8d8470668e64fe53389f.tar.gz
glibc-c628c2296392ed3bf2cb8d8470668e64fe53389f.tar.bz2
elf: Remove ldconfig kernel version check
Now that it was removed on libc.so.
Diffstat (limited to 'elf/ldconfig.c')
-rw-r--r--elf/ldconfig.c22
1 files changed, 7 insertions, 15 deletions
diff --git a/elf/ldconfig.c b/elf/ldconfig.c
index 57bb95e..9394ac6 100644
--- a/elf/ldconfig.c
+++ b/elf/ldconfig.c
@@ -658,7 +658,6 @@ manual_link (char *library)
char *soname;
struct stat stat_buf;
int flag;
- unsigned int osversion;
unsigned int isa_level;
/* Prepare arguments for create_links call. Split library name in
@@ -723,8 +722,8 @@ manual_link (char *library)
goto out;
}
- if (process_file (real_library, library, libname, &flag, &osversion,
- &isa_level, &soname, 0, &stat_buf))
+ if (process_file (real_library, library, libname, &flag, &isa_level, &soname,
+ 0, &stat_buf))
{
error (0, 0, _("No link created since soname could not be found for %s"),
library);
@@ -772,7 +771,6 @@ struct dlib_entry
char *soname;
int flag;
int is_link;
- unsigned int osversion;
unsigned int isa_level;
struct dlib_entry *next;
};
@@ -991,22 +989,18 @@ search_dir (const struct dir_entry *entry)
/* First search whether the auxiliary cache contains this
library already and it's not changed. */
char *soname;
- unsigned int osversion;
unsigned int isa_level;
- if (!search_aux_cache (&lstat_buf, &flag, &osversion, &isa_level,
- &soname))
+ if (!search_aux_cache (&lstat_buf, &flag, &isa_level, &soname))
{
if (process_file (real_name, file_name, direntry->d_name, &flag,
- &osversion, &isa_level, &soname, is_link,
- &lstat_buf))
+ &isa_level, &soname, is_link, &lstat_buf))
{
if (real_name != real_file_name)
free (real_name);
continue;
}
else if (opt_build_cache)
- add_to_aux_cache (&lstat_buf, flag, osversion, isa_level,
- soname);
+ add_to_aux_cache (&lstat_buf, flag, isa_level, soname);
}
if (soname == NULL)
@@ -1111,7 +1105,6 @@ search_dir (const struct dir_entry *entry)
free (dlib_ptr->name);
dlib_ptr->name = xstrdup (direntry->d_name);
dlib_ptr->is_link = is_link;
- dlib_ptr->osversion = osversion;
dlib_ptr->isa_level = isa_level;
}
/* Don't add this library, abort loop. */
@@ -1128,7 +1121,6 @@ search_dir (const struct dir_entry *entry)
dlib_ptr->soname = soname;
dlib_ptr->flag = flag;
dlib_ptr->is_link = is_link;
- dlib_ptr->osversion = osversion;
dlib_ptr->isa_level = isa_level;
/* Add at head of list. */
dlib_ptr->next = dlibs;
@@ -1166,8 +1158,8 @@ search_dir (const struct dir_entry *entry)
}
if (opt_build_cache)
add_to_cache (entry->path, filename, dlib_ptr->soname,
- dlib_ptr->flag, dlib_ptr->osversion,
- dlib_ptr->isa_level, hwcap, entry->hwcaps);
+ dlib_ptr->flag, dlib_ptr->isa_level, hwcap,
+ entry->hwcaps);
}
/* Free all resources. */