diff options
author | Nick Clifton <nickc@redhat.com> | 2004-07-23 16:32:53 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2004-07-23 16:32:53 +0000 |
commit | 9f61903d7388315e3d7b83a7e7c5ce1e30ab5ed3 (patch) | |
tree | eb9ce7ffc8685e78e7cdb117bc7a842409d790e6 /ld/ldlang.c | |
parent | 60ee6567b0c7fa9bda75eff0206406d36b23294b (diff) | |
download | gdb-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.c | 1 |
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)) |