binutils: don't lose entry point when linking with -bnogc

This commit is contained in:
Wolfgang Thaller 2015-09-08 10:13:10 +02:00
parent 9f7a6ac3a9
commit 06b8cf62eb
1 changed files with 4 additions and 0 deletions

View File

@ -3741,6 +3741,10 @@ bfd_xcoff_size_dynamic_sections (bfd *output_bfd,
}
}
}
// mark entry point, the XCOFF_ENTRY flag is needed later
if (entry != NULL
&& !xcoff_mark_symbol_by_name (info, entry, XCOFF_ENTRY))
goto error_return;
}
else
{