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:
@ -1010,7 +1010,7 @@ bfd_make_section (abfd, name)
|
||||
if (newsect->name != NULL)
|
||||
{
|
||||
/* Section already exists. */
|
||||
return newsect;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
newsect->name = name;
|
||||
|
||||
Reference in New Issue
Block a user