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:
@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user