From 39cb2101482be9a44fb22f2ca19a6625c528c404 Mon Sep 17 00:00:00 2001 From: Gunther Nikl Date: Tue, 5 May 2015 19:01:47 +0000 Subject: [PATCH] Fix behaviour of a core bfd function generating sections. For details check https://sourceware.org/ml/binutils/2003-07/msg00077.html about the patch. * bfd/section.c (bfd_make_section): Return NULL for existing section. --- bfd/section.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bfd/section.c b/bfd/section.c index 04f439e..6e262e8 100644 --- a/bfd/section.c +++ b/bfd/section.c @@ -1010,7 +1010,7 @@ bfd_make_section (abfd, name) if (newsect->name != NULL) { /* Section already exists. */ - return newsect; + return NULL; } newsect->name = name;