OSDN Git Service

* section.c (bfd_make_section): Return NULL for existing section.
authoramodra <amodra>
Fri, 4 Jul 2003 04:14:56 +0000 (04:14 +0000)
committeramodra <amodra>
Fri, 4 Jul 2003 04:14:56 +0000 (04:14 +0000)
bfd/ChangeLog
bfd/section.c

index b9b0a4d..6f9b283 100644 (file)
@@ -1,5 +1,9 @@
 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
        ppc_elf_create_got if we've already done so.
 
index 0f5ab9a..020ab01 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;