* elflink.h (elf_adjust_dynamic_symbol): Don't try to get the
flavour of a section with no owner.
This commit is contained in:
parent
0f09ddd4d2
commit
e303e2e358
|
@ -1524,8 +1524,9 @@ elf_adjust_dynamic_symbol (h, data)
|
||||||
h->elf_link_hash_flags |= ELF_LINK_HASH_REF_REGULAR;
|
h->elf_link_hash_flags |= ELF_LINK_HASH_REF_REGULAR;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (bfd_get_flavour (h->root.u.def.section->owner)
|
if (h->root.u.def.section->owner != NULL
|
||||||
== bfd_target_elf_flavour)
|
&& (bfd_get_flavour (h->root.u.def.section->owner)
|
||||||
|
== bfd_target_elf_flavour))
|
||||||
h->elf_link_hash_flags |= ELF_LINK_HASH_REF_REGULAR;
|
h->elf_link_hash_flags |= ELF_LINK_HASH_REF_REGULAR;
|
||||||
else
|
else
|
||||||
h->elf_link_hash_flags |= ELF_LINK_HASH_DEF_REGULAR;
|
h->elf_link_hash_flags |= ELF_LINK_HASH_DEF_REGULAR;
|
||||||
|
|
Loading…
Reference in New Issue