From 40a0491a90506be953114a472d7562c7afb5b600 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Sat, 23 Aug 2003 04:10:34 +0000 Subject: * elflink.h (elf_link_add_object_symbols): Don't crash on NULL owner. --- bfd/elflink.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bfd/elflink.h') diff --git a/bfd/elflink.h b/bfd/elflink.h index d667993..48b86cf 100644 --- a/bfd/elflink.h +++ b/bfd/elflink.h @@ -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) -- cgit v1.1