diff options
Diffstat (limited to 'packages/glibc/2.13/0033-mips_shn_undef-hack.patch')
-rw-r--r-- | packages/glibc/2.13/0033-mips_shn_undef-hack.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/packages/glibc/2.13/0033-mips_shn_undef-hack.patch b/packages/glibc/2.13/0033-mips_shn_undef-hack.patch new file mode 100644 index 00000000..2f9d6568 --- /dev/null +++ b/packages/glibc/2.13/0033-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 +@@ -301,6 +301,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; |