From 7cf5011a6ffc7a374d740176cb3478db6c070570 Mon Sep 17 00:00:00 2001 From: amodra Date: Fri, 4 Jul 2003 04:14:56 +0000 Subject: [PATCH] * section.c (bfd_make_section): Return NULL for existing section. --- bfd/ChangeLog | 4 ++++ bfd/section.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index b9b0a4d90f..6f9b28307f 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,9 @@ 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 ppc_elf_create_got if we've already done so. diff --git a/bfd/section.c b/bfd/section.c index 0f5ab9a29b..020ab01fc5 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; -- 2.11.0