(_place_orphan): Use an already existing section name if that section does not

have any flags set.
This commit is contained in:
Nick Clifton
2004-07-23 16:32:53 +00:00
parent 60ee6567b0
commit 9f61903d73
3 changed files with 14 additions and 2 deletions

View File

@ -612,6 +612,7 @@ lang_output_section_find_1 (const char *const name, int constraint)
for (u = lang_output_section_statement.head; u != NULL; u = lookup->next)
{
lookup = &u->output_section_statement;
if (strcmp (name, lookup->name) == 0
&& lookup->constraint != -1
&& (constraint == 0 || constraint == lookup->constraint))