aboutsummaryrefslogtreecommitdiff
path: root/ld/ldlang.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2007-07-29 12:33:38 +0000
committerAlan Modra <amodra@gmail.com>2007-07-29 12:33:38 +0000
commit48f2ff543db37fece56b0a507427917e06dc1b66 (patch)
tree42c5d9ab72516a58170783ecb5e60c3e6f339ef9 /ld/ldlang.c
parentb112852a8fffee827c599246d59108f9ae4e2544 (diff)
downloadgdb-48f2ff543db37fece56b0a507427917e06dc1b66.zip
gdb-48f2ff543db37fece56b0a507427917e06dc1b66.tar.gz
gdb-48f2ff543db37fece56b0a507427917e06dc1b66.tar.bz2
ld/
* ldlang.c (lang_insert_orphan): When searching through linker script to place an orphan, don't stop on statements that appear outside of SECTIONS. * emultempl/elf32.em (output_rel_find): Prefer read-only alloc sections over read/write alloc sections. ld/testsuite/ * ld-elf/weak-dyn-1.rd: Adjust.
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r--ld/ldlang.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c
index ecc0dad..decfc5f 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -1654,13 +1654,14 @@ lang_insert_orphan (asection *s,
case lang_output_section_statement_enum:
if (assign != NULL)
where = assign;
+ break;
case lang_input_statement_enum:
case lang_address_statement_enum:
case lang_target_statement_enum:
case lang_output_statement_enum:
case lang_group_statement_enum:
case lang_afile_asection_pair_statement_enum:
- break;
+ continue;
}
break;
}