local-soname-hack.diff

From: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Date: Fri, 11 Nov 2022 23:32:07 +0800
Subject: local-soname-hack
This commit is contained in:
denghao 2022-11-10 05:10:26 +03:00
parent ff74cc6b2f
commit cf1cb81f80
1 changed files with 4 additions and 1 deletions

View File

@ -1979,10 +1979,13 @@ _dl_map_object (struct link_map *loader, const char *name,
soname = ((const char *) D_PTR (l, l_info[DT_STRTAB])
+ l->l_info[DT_SONAME]->d_un.d_val);
if (strcmp (name, soname) != 0)
#ifdef __arm__
if (strcmp(name, "ld-linux.so.3") || strcmp(soname, "ld-linux-armhf.so.3"))
#endif
continue;
/* We have a match on a new name -- cache it. */
add_name_to_object (l, soname);
add_name_to_object (l, name);
l->l_soname_added = 1;
}