From: Alan Modra Date: Fri, 4 Jul 2003 04:14:56 +0000 (+0000) Subject: * section.c (bfd_make_section): Return NULL for existing section. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=003d627e6e3f1826116f57ee1b986e0519585f63;p=binutils-gdb.git * section.c (bfd_make_section): Return NULL for existing section. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index b9b0a4d90f2..6f9b28307fb 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2003-07-04 Alan Modra + + * section.c (bfd_make_section): Return NULL for existing section. + 2003-07-04 Alan Modra * elf32-ppc.c (ppc_elf_create_dynamic_sections): Don't call diff --git a/bfd/section.c b/bfd/section.c index 0f5ab9a29b4..020ab01fc55 100644 --- a/bfd/section.c +++ b/bfd/section.c @@ -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;