[glibc] add the armhfp linker hack patch
Dennis Gilmore
ausil at fedoraproject.org
Tue Jun 12 01:38:54 UTC 2012
commit 6b0fcd959e9a492cd999e83fb16ce10a98ffb65e
Author: Dennis Gilmore <dennis at ausil.us>
Date: Mon Jun 11 20:38:11 2012 -0500
add the armhfp linker hack patch
glibc-arm-hardfloat-3.patch | 20 ++++++++++++++++++++
1 files changed, 20 insertions(+), 0 deletions(-)
---
diff --git a/glibc-arm-hardfloat-3.patch b/glibc-arm-hardfloat-3.patch
new file mode 100644
index 0000000..ff4997e
--- /dev/null
+++ b/glibc-arm-hardfloat-3.patch
@@ -0,0 +1,20 @@
+diff -Nrup a/elf/dl-load.c b/elf/dl-load.c
+--- a/elf/dl-load.c 2012-06-06 13:07:41.727524312 -0600
++++ b/elf/dl-load.c 2012-06-06 13:11:19.308681002 -0600
+@@ -2093,10 +2093,14 @@ _dl_map_object (struct link_map *loader,
+ soname = ((const char *) D_PTR (l, l_info[DT_STRTAB])
+ + l->l_info[DT_SONAME]->d_un.d_val);
+ if (strcmp (name, soname) != 0)
+- continue;
++#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;
+ }
+
More information about the scm-commits
mailing list