diff options
author | Alexey Neyman <stilor@att.net> | 2017-12-02 23:30:38 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-02 23:30:38 (GMT) |
commit | d917a29865876b913fe2939ee2a0728145e8543a (patch) | |
tree | 4e048ed57988306696efa3c5b81a80d48030e913 /packages/glibc/2.13/0033-mips_shn_undef-hack.patch | |
parent | e832b9b220f90b11b893e2815ceb37ec2b708683 (diff) | |
parent | 98bc4decdeab1361bdc585c86591718fb08c8ffb (diff) |
Merge pull request #874 from stilor/renumber-update-patches
Renumber & update patches
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 0000000..2f9d656 --- /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; |