crosstool-ng/packages/glibc/2.16.0/0029-mips_shn_undef-hack.patch
Alexey Neyman 98bc4decde Run all patches through renumbering and update
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-12-02 12:44:39 -08:00

20 lines
496 B
Diff

---
elf/dl-lookup.c | 6 ++++++
1 file changed, 6 insertions(+)
--- a/elf/dl-lookup.c
+++ b/elf/dl-lookup.c
@@ -299,6 +299,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;