2
0
mirror of https://github.com/bebbo/amigaos-binutils-2.14.git synced 2025-12-08 22:38:24 +00:00

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.
This commit is contained in:
Gunther Nikl
2015-05-05 19:01:47 +00:00
parent e2b5906c8a
commit 39cb210148

View File

@ -1010,7 +1010,7 @@ bfd_make_section (abfd, name)
if (newsect->name != NULL) if (newsect->name != NULL)
{ {
/* Section already exists. */ /* Section already exists. */
return newsect; return NULL;
} }
newsect->name = name; newsect->name = name;