X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=bfd%2Felflink.h;h=4973ae36f21100718c11d293cdf2fb202db61ca5;hb=5fba655aed6c897750c2a9c88467b1691b8ec481;hp=d175223ffa97ae3c07421496459c740d83a929c4;hpb=db20fd76547e0c6e7f73969bbeec15e3d83a182e;p=deliverable%2Fbinutils-gdb.git diff --git a/bfd/elflink.h b/bfd/elflink.h index d175223ffa..4973ae36f2 100644 --- a/bfd/elflink.h +++ b/bfd/elflink.h @@ -3541,6 +3541,9 @@ elf_fix_symbol_flags (h, eif) { struct elf_backend_data *bed; bed = get_elf_backend_data (elf_hash_table (eif->info)->dynobj); + if (ELF_ST_VISIBILITY (h->other) == STV_INTERNAL + || ELF_ST_VISIBILITY (h->other) == STV_HIDDEN) + h->elf_link_hash_flags |= ELF_LINK_FORCED_LOCAL; (*bed->elf_backend_hide_symbol) (eif->info, h); }