From: Anas Nashif Date: Mon, 24 Dec 2012 02:23:17 +0000 (-0800) Subject: armhf compatibility X-Git-Tag: accepted/tizen/common/20150403.125720~24 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cb7212a693caed5f22237a9c2d8b7a8bcf29052f;p=platform%2Fupstream%2Fglibc.git armhf compatibility Patch for elf/dl-load.c taken from Debian: 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. --- diff --git a/elf/dl-load.c b/elf/dl-load.c index 41b91fc..b9d983f 100644 --- a/elf/dl-load.c +++ b/elf/dl-load.c @@ -1933,10 +1933,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; }