From: GNU Libc Maintainers Date: Tue, 27 May 2025 10:40:04 +0000 (+0100) Subject: local-soname-hack X-Git-Tag: archive/raspbian/2.31-13+rpi1+deb11u13^2~142 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=caec3b19641a2766e5cc8b25e18a4afeb1394df3;p=glibc.git local-soname-hack For backward compatibility with armhf binaries built with the old linker SONAME, we need to fake out the linker to believe the new is the old, until such a point as everything is rebuilt Gbp-Pq: Topic arm Gbp-Pq: Name local-soname-hack.diff --- diff --git a/elf/dl-load.c b/elf/dl-load.c index a6b80f939..7eb452872 100644 --- a/elf/dl-load.c +++ b/elf/dl-load.c @@ -1939,10 +1939,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; }