aboutsummaryrefslogtreecommitdiff
path: root/ld/ldlang.c
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2007-03-29 17:16:05 +0000
committerRichard Sandiford <rdsandiford@googlemail.com>2007-03-29 17:16:05 +0000
commitbcb674cff702e0b46719839a0af4e1ab1619918c (patch)
treef8ffc8cc3eb4ec3eb78ced88fd498a47ed48b42e /ld/ldlang.c
parent436868fbdf0d04a677a805ed751ad8a042ef63dd (diff)
downloadgdb-bcb674cff702e0b46719839a0af4e1ab1619918c.zip
gdb-bcb674cff702e0b46719839a0af4e1ab1619918c.tar.gz
gdb-bcb674cff702e0b46719839a0af4e1ab1619918c.tar.bz2
ld/
200x-xx-xx Richard Sandiford <richard@codesourcery.com> Daniel Jacobowitz <dan@codesourcery.com> * NEWS: Mention -l:foo. * ld.texinfo: Document it. * ldlang.c (new_afile): If a lang_input_file_is_l_enum entry as a name beginning with a coloh, convert it to a lang_input_file_is_search_file_enum entry without the colon. ld/testsuite/ * ld-libs/lib-1.s, ld-libs/lib-2.s, ld-libs/lib-2.d, * ld-libs/libs.exp: New files.
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r--ld/ldlang.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c
index 85dd271..7731bfb 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -913,6 +913,14 @@ new_afile (const char *name,
lang_has_input_file = TRUE;
p->target = target;
p->sysrooted = FALSE;
+
+ if (file_type == lang_input_file_is_l_enum
+ && name[0] == ':' && name[1] != '\0')
+ {
+ file_type = lang_input_file_is_search_file_enum;
+ name = name + 1;
+ }
+
switch (file_type)
{
case lang_input_file_is_symbols_only_enum: