From 9f61903d7388315e3d7b83a7e7c5ce1e30ab5ed3 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Fri, 23 Jul 2004 16:32:53 +0000 Subject: (_place_orphan): Use an already existing section name if that section does not have any flags set. --- ld/ldlang.c | 1 + 1 file changed, 1 insertion(+) (limited to 'ld/ldlang.c') diff --git a/ld/ldlang.c b/ld/ldlang.c index 6cc05a6..8c6ebaf 100644 --- a/ld/ldlang.c +++ b/ld/ldlang.c @@ -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)) -- cgit v1.1