aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bfd/ChangeLog4
-rw-r--r--bfd/section.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index b9b0a4d..6f9b283 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -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.
diff --git a/bfd/section.c b/bfd/section.c
index 0f5ab9a..020ab01 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;