* section.c (bfd_make_section): Return NULL for existing section.
authorAlan Modra <amodra@gmail.com>
Fri, 4 Jul 2003 04:14:56 +0000 (04:14 +0000)
committerAlan Modra <amodra@gmail.com>
Fri, 4 Jul 2003 04:14:56 +0000 (04:14 +0000)
bfd/ChangeLog
bfd/section.c

index b9b0a4d90f29b602d341020e8011137339f5e8b2..6f9b28307fb74b69cdaf880737a16a6d15ab5add 100644 (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
index 0f5ab9a29b43784c3aacbfe95f542f28df57d30e..020ab01fc55aacc276bf1e437b30a67af1ae4ded 100644 (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;