summaryrefslogtreecommitdiff
path: root/packages/glibc/2.15/0031-mips_shn_undef-hack.patch
diff options
context:
space:
mode:
Diffstat (limited to 'packages/glibc/2.15/0031-mips_shn_undef-hack.patch')
-rw-r--r--packages/glibc/2.15/0031-mips_shn_undef-hack.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/packages/glibc/2.15/0031-mips_shn_undef-hack.patch b/packages/glibc/2.15/0031-mips_shn_undef-hack.patch
new file mode 100644
index 0000000..a12c977
--- /dev/null
+++ b/packages/glibc/2.15/0031-mips_shn_undef-hack.patch
@@ -0,0 +1,19 @@
+---
+ elf/dl-lookup.c | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+--- a/elf/dl-lookup.c
++++ b/elf/dl-lookup.c
+@@ -300,6 +300,12 @@
+ /* FALLTHROUGH */
+ case STB_GLOBAL:
+ success:
++#ifdef __mips__
++ /* HACK: MIPS marks its lazy evaluation stubs with SHN_UNDEF
++ symbols, we skip them. */
++ if (sym->st_shndx == SHN_UNDEF)
++ break;
++#endif
+ /* Global definition. Just what we need. */
+ result->s = sym;
+ result->m = (struct link_map *) map;