* xcofflink.c (bfd_xcoff_size_dynamic_sections): Don't crash if
the entry symbol is not set.
This commit is contained in:
parent
809ffe0deb
commit
cdb72c32be
|
@ -1,5 +1,5 @@
|
||||||
/* POWER/PowerPC XCOFF linker support.
|
/* POWER/PowerPC XCOFF linker support.
|
||||||
Copyright 1995, 1996, 1997 Free Software Foundation, Inc.
|
Copyright 1995, 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
|
||||||
Written by Ian Lance Taylor <ian@cygnus.com>, Cygnus Support.
|
Written by Ian Lance Taylor <ian@cygnus.com>, Cygnus Support.
|
||||||
|
|
||||||
This file is part of BFD, the Binary File Descriptor library.
|
This file is part of BFD, the Binary File Descriptor library.
|
||||||
|
@ -3272,10 +3272,15 @@ bfd_xcoff_size_dynamic_sections (output_bfd, info, libpath, entry,
|
||||||
xcoff_hash_table (info)->file_align = file_align;
|
xcoff_hash_table (info)->file_align = file_align;
|
||||||
xcoff_hash_table (info)->textro = textro;
|
xcoff_hash_table (info)->textro = textro;
|
||||||
|
|
||||||
|
if (entry == NULL)
|
||||||
|
hentry = NULL;
|
||||||
|
else
|
||||||
|
{
|
||||||
hentry = xcoff_link_hash_lookup (xcoff_hash_table (info), entry,
|
hentry = xcoff_link_hash_lookup (xcoff_hash_table (info), entry,
|
||||||
false, false, true);
|
false, false, true);
|
||||||
if (hentry != NULL)
|
if (hentry != NULL)
|
||||||
hentry->flags |= XCOFF_ENTRY;
|
hentry->flags |= XCOFF_ENTRY;
|
||||||
|
}
|
||||||
|
|
||||||
/* Garbage collect unused sections. */
|
/* Garbage collect unused sections. */
|
||||||
if (info->relocateable
|
if (info->relocateable
|
||||||
|
|
Loading…
Reference in New Issue