]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blob - glibc/patches/glibc-arm-hardfloat-3.patch
c_icap: Rebuild against libdb
[people/amarx/ipfire-3.x.git] / glibc / patches / glibc-arm-hardfloat-3.patch
1 diff -Nrup a/elf/dl-load.c b/elf/dl-load.c
2 --- a/elf/dl-load.c 2012-06-06 13:07:41.727524312 -0600
3 +++ b/elf/dl-load.c 2012-06-06 13:11:19.308681002 -0600
4 @@ -2093,10 +2093,14 @@ _dl_map_object (struct link_map *loader,
5 soname = ((const char *) D_PTR (l, l_info[DT_STRTAB])
6 + l->l_info[DT_SONAME]->d_un.d_val);
7 if (strcmp (name, soname) != 0)
8 - continue;
9 +#ifdef __arm__
10 + if (strcmp (name, "ld-linux.so.3")
11 + || strcmp (soname, "ld-linux-armhf.so.3"))
12 +#endif
13 + continue;
14
15 /* We have a match on a new name -- cache it. */
16 - add_name_to_object (l, soname);
17 + add_name_to_object (l, name);
18 l->l_soname_added = 1;
19 }
20