2
0
mirror of https://frontier.innolan.net/github/amigaos-binutils.git synced 2025-11-19 19:40:19 +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)
{
/* Section already exists. */
return newsect;
return NULL;
}
newsect->name = name;