Lines Matching refs:syms

2526     /* After editing .opd, adjust references to opd local syms.  */
2621 sym_exists_at (asymbol **syms, long lo, long hi, int id, bfd_vma value)
2630 if (syms[mid]->value + syms[mid]->section->vma < value)
2632 else if (syms[mid]->value + syms[mid]->section->vma > value)
2635 return syms[mid];
2643 if (syms[mid]->section->id < id)
2645 else if (syms[mid]->section->id > id)
2647 else if (syms[mid]->value < value)
2649 else if (syms[mid]->value > value)
2652 return syms[mid];
2659 entry syms. */
2674 asymbol **syms;
2688 syms = bfd_malloc ((symcount + 1) * sizeof (*syms));
2689 if (syms == NULL)
2695 memcpy (syms, static_syms, static_count * sizeof (*syms));
2696 memcpy (syms + static_count, dyn_syms, (dyn_count + 1) * sizeof (*syms));
2699 memcpy (syms, dyn_syms, (symcount + 1) * sizeof (*syms));
2701 memcpy (syms, static_syms, (symcount + 1) * sizeof (*syms));
2705 qsort (syms, symcount, sizeof (*syms), compare_symbols);
2710 /* Trim duplicate syms, since we may have merged the normal and
2711 dynamic symbols. Actually, we only care about syms that have
2714 if (syms[i - 1]->value + syms[i - 1]->section->vma
2715 != syms[i]->value + syms[i]->section->vma)
2716 syms[j++] = syms[i];
2721 if (syms[i]->section == opd)
2726 if (((syms[i]->section->flags & (SEC_CODE | SEC_ALLOC | SEC_THREAD_LOCAL))
2728 || (syms[i]->flags & BSF_SECTION_SYM) == 0)
2733 if ((syms[i]->flags & BSF_SECTION_SYM) == 0)
2738 if (syms[i]->section != opd)
2743 if ((syms[i]->section->flags & (SEC_CODE | SEC_ALLOC | SEC_THREAD_LOCAL))
2772 && r->address < syms[i]->value + opd->vma)
2778 if (r->address != syms[i]->value + opd->vma)
2785 if (!sym_exists_at (syms, opdsymend, symcount,
2790 size += strlen (syms[i]->name) + 2;
2808 && r->address < syms[i]->value + opd->vma)
2814 if (r->address != syms[i]->value + opd->vma)
2821 if (!sym_exists_at (syms, opdsymend, symcount,
2826 *s = *syms[i];
2831 len = strlen (syms[i]->name);
2832 memcpy (names, syms[i]->name, len + 1);
2858 ent = bfd_get_64 (abfd, contents + syms[i]->value);
2859 if (!sym_exists_at (syms, opdsymend, symcount, -1, ent))
2863 size += strlen (syms[i]->name) + 2;
2880 ent = bfd_get_64 (abfd, contents + syms[i]->value);
2881 if (!sym_exists_at (syms, opdsymend, symcount, -1, ent))
2887 *s = *syms[i];
2893 if (syms[mid]->section->vma < ent)
2895 else if (syms[mid]->section->vma > ent)
2899 sec = syms[mid]->section;
2905 sec = syms[lo - 1]->section;
2920 len = strlen (syms[i]->name);
2921 memcpy (names, syms[i]->name, len + 1);
2930 free (syms);
3299 /* Number of stubs against global syms. */
4056 /* We need to fix the undefs list for any syms we have twiddled to
4211 easy for global symbols, but for local syms we need to keep
4214 local syms in .opd. */
4652 /* Track dynamic relocs needed for local syms too.
4653 We really need local syms available to do this
4861 /* Function descriptor syms cause the associated
5401 function code sym info. Any function code syms for which we
5403 This prevents a shared library from exporting syms that have
5404 been imported from another library. Function code syms that
5480 /* Deal with function syms. */
5819 /* Adjust all global syms defined in opd sections. In gcc generated
6158 /* Local syms are a bit tricky. We could
6160 we'd need to look through the local syms
6725 Undefined weak syms won't yet be marked as dynamic,
6790 /* Also discard relocs on undefined weak syms with non-default
6807 Undefined weak syms won't yet be marked as dynamic. */
6895 /* Set up .got offsets for local syms, and space for local dynamic
8736 /* Check that tls relocs are used with tls syms, and non-tls
8737 relocs are used with non-tls syms. */
9706 bug in binutils handling of weak syms.)