* elflink.h (elf_link_add_object_symbols): Don't crash on NULL owner.
This commit is contained in:
parent
4be5d5207c
commit
40a0491a90
@ -1,3 +1,7 @@
|
||||
2003-08-23 Alan Modra <amodra@bigpond.net.au>
|
||||
|
||||
* elflink.h (elf_link_add_object_symbols): Don't crash on NULL owner.
|
||||
|
||||
2003-08-22 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
* elfxx-ia64.c (elfNN_ia64_create_dynamic_sections): Align the
|
||||
|
@ -1186,7 +1186,8 @@ elf_link_add_object_symbols (bfd *abfd, struct bfd_link_info *info)
|
||||
bfd *common_bfd;
|
||||
|
||||
symbol_align = ffs (h->root.u.def.value) - 1;
|
||||
if ((h->root.u.def.section->owner->flags & DYNAMIC) == 0)
|
||||
if (h->root.u.def.section->owner != NULL
|
||||
&& (h->root.u.def.section->owner->flags & DYNAMIC) == 0)
|
||||
{
|
||||
normal_align = h->root.u.def.section->alignment_power;
|
||||
if (normal_align > symbol_align)
|
||||
|
Loading…
x
Reference in New Issue
Block a user