* section.c (bfd_make_section): Return NULL for existing section.

This commit is contained in:
Alan Modra 2003-07-04 04:14:56 +00:00
parent fa681e5d43
commit 003d627e6e
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2003-07-04 Alan Modra <amodra@bigpond.net.au>
* section.c (bfd_make_section): Return NULL for existing section.
2003-07-04 Alan Modra <amodra@bigpond.net.au>
* elf32-ppc.c (ppc_elf_create_dynamic_sections): Don't call

View File

@ -1001,7 +1001,7 @@ bfd_make_section (bfd *abfd, const char *name)
if (newsect->name != NULL)
{
/* Section already exists. */
return newsect;
return NULL;
}
newsect->name = name;