projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f09ddd
)
* elflink.h (elf_adjust_dynamic_symbol): Don't try to get the
author
Ian Lance Taylor
<ian@airs.com>
Mon, 5 Feb 1996 15:47:53 +0000
(15:47 +0000)
committer
Ian Lance Taylor
<ian@airs.com>
Mon, 5 Feb 1996 15:47:53 +0000
(15:47 +0000)
flavour of a section with no owner.
bfd/elflink.h
patch
|
blob
|
history
diff --git
a/bfd/elflink.h
b/bfd/elflink.h
index beab0d0adc64ff5b33c35a340bd0792c14c0abac..83f0eb0bc81e81a381d91f60095952091f39a640 100644
(file)
--- 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;