aboutsummaryrefslogtreecommitdiff
path: root/ld/ldlang.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2004-07-23 16:32:53 +0000
committerNick Clifton <nickc@redhat.com>2004-07-23 16:32:53 +0000
commit9f61903d7388315e3d7b83a7e7c5ce1e30ab5ed3 (patch)
treeeb9ce7ffc8685e78e7cdb117bc7a842409d790e6 /ld/ldlang.c
parent60ee6567b0c7fa9bda75eff0206406d36b23294b (diff)
downloadgdb-9f61903d7388315e3d7b83a7e7c5ce1e30ab5ed3.zip
gdb-9f61903d7388315e3d7b83a7e7c5ce1e30ab5ed3.tar.gz
gdb-9f61903d7388315e3d7b83a7e7c5ce1e30ab5ed3.tar.bz2
(_place_orphan): Use an already existing section name if that section does not
have any flags set.
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r--ld/ldlang.c1
1 files changed, 1 insertions, 0 deletions
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))