* elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
before visibility. Locally defined protected symbols are not dynamic.
This commit is contained in:
parent
4603e845c0
commit
ca88208ac8
@ -1,3 +1,9 @@
|
||||
2001-02-08 Richard Henderson <rth@redhat.com>
|
||||
|
||||
* elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
|
||||
before visibility. Locally defined protected symbols are not
|
||||
dynamic.
|
||||
|
||||
2001-02-08 Geoffrey Keating <geoffk@redhat.com>
|
||||
|
||||
* config.bfd: Enable coff64 for rs6000-*. Patch from
|
||||
|
@ -240,17 +240,24 @@ alpha_elf_dynamic_symbol_p (h, info)
|
||||
|
||||
if (h->dynindx == -1)
|
||||
return false;
|
||||
switch (ELF_ST_VISIBILITY (h->other))
|
||||
{
|
||||
case STV_INTERNAL:
|
||||
case STV_HIDDEN:
|
||||
return false;
|
||||
}
|
||||
|
||||
if (h->root.type == bfd_link_hash_undefweak
|
||||
|| h->root.type == bfd_link_hash_defweak)
|
||||
return true;
|
||||
|
||||
switch (ELF_ST_VISIBILITY (h->other))
|
||||
{
|
||||
case STV_DEFAULT:
|
||||
break;
|
||||
case STV_HIDDEN:
|
||||
case STV_INTERNAL:
|
||||
return false;
|
||||
case STV_PROTECTED:
|
||||
if (h->elf_link_hash_flags & ELF_LINK_HASH_DEF_REGULAR)
|
||||
return false;
|
||||
break;
|
||||
}
|
||||
|
||||
if ((info->shared && !info->symbolic)
|
||||
|| ((h->elf_link_hash_flags
|
||||
& (ELF_LINK_HASH_DEF_DYNAMIC | ELF_LINK_HASH_REF_REGULAR))
|
||||
|
Loading…
Reference in New Issue
Block a user