* ldfile.c (ldfile_open_command_file_1): Return after einfo
authorAlan Modra <amodra@gmail.com>
Wed, 6 Mar 2013 13:48:46 +0000 (13:48 +0000)
committerAlan Modra <amodra@gmail.com>
Wed, 6 Mar 2013 13:48:46 +0000 (13:48 +0000)
to avoid warning.

ld/ChangeLog
ld/ldfile.c

index ec75b6b..e01cc73 100644 (file)
@@ -1,3 +1,8 @@
+2013-03-07  Alan Modra  <amodra@gmail.com>
+
+       * ldfile.c (ldfile_open_command_file_1): Return after einfo
+       to avoid warning.
+
 2013-03-05  Corinna Vinschen  <vinschen@redhat.com>
 
        * configure.host: Add x86_64-*-cygwin* as valid host.
index e9091e9..16baef8 100644 (file)
@@ -602,6 +602,7 @@ ldfile_open_command_file_1 (const char *name, bfd_boolean default_only)
     {
       bfd_set_error (bfd_error_system_call);
       einfo (_("%P%F: cannot open linker script file %s: %E\n"), name);
+      return;
     }
 
   lex_push_file (ldlex_input_stack, name, sysrooted);