From: Ian Lance Taylor Date: Mon, 5 Feb 1996 15:47:53 +0000 (+0000) Subject: * elflink.h (elf_adjust_dynamic_symbol): Don't try to get the X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e303e2e3589a0aba00d43b71e5442c9ece6a59c3;p=binutils-gdb.git * elflink.h (elf_adjust_dynamic_symbol): Don't try to get the flavour of a section with no owner. --- diff --git a/bfd/elflink.h b/bfd/elflink.h index beab0d0adc6..83f0eb0bc81 100644 --- a/bfd/elflink.h +++ b/bfd/elflink.h @@ -1524,8 +1524,9 @@ elf_adjust_dynamic_symbol (h, data) h->elf_link_hash_flags |= ELF_LINK_HASH_REF_REGULAR; else { - if (bfd_get_flavour (h->root.u.def.section->owner) - == bfd_target_elf_flavour) + if (h->root.u.def.section->owner != NULL + && (bfd_get_flavour (h->root.u.def.section->owner) + == bfd_target_elf_flavour)) h->elf_link_hash_flags |= ELF_LINK_HASH_REF_REGULAR; else h->elf_link_hash_flags |= ELF_LINK_HASH_DEF_REGULAR;