Correct handling of .sa file.
authorIan Lance Taylor <ian@airs.com>
Thu, 2 Jun 1994 23:54:37 +0000 (23:54 +0000)
committerIan Lance Taylor <ian@airs.com>
Thu, 2 Jun 1994 23:54:37 +0000 (23:54 +0000)
ld/emultempl/sunos.em

index 55bcd6c925836e3ec1496f740efc35684dd52442..c6c1605df15320bf547a2add75b967cbddeba53a 100644 (file)
@@ -221,15 +221,18 @@ gld${EMULATION_NAME}_find_so (inp)
       sa->the_bfd = NULL;
       sa->asymbols = NULL;
       sa->symbol_count = 0;
-      sa->next = inp->next;
+      sa->next = NULL;
       sa->next_real_file = inp->next_real_file;
       sa->is_archive = false;
       sa->search_dirs_flag = false;
       sa->just_syms_flag = false;
       sa->loaded = false;
+      sa->real = true;
+      sa->complained = false;
 
+      /* Put the new statement next on the list of statements and next
+        on the list of input files.  */
       inp->header.next = (lang_statement_union_type *) sa;
-      inp->next = (lang_statement_union_type *) sa;
       inp->next_real_file = (lang_statement_union_type *) sa;
     }
 }