*** empty log message ***
authorSteve Chamberlain <steve@cygnus>
Tue, 16 Apr 1991 14:32:02 +0000 (14:32 +0000)
committerSteve Chamberlain <steve@cygnus>
Tue, 16 Apr 1991 14:32:02 +0000 (14:32 +0000)
ld/ldexp.c
ld/ldfile.c
ld/ldgram.y
ld/ldlang.c
ld/ldlex.l

index 583b9bc..5d12c46 100644 (file)
@@ -256,6 +256,9 @@ bfd_vma *dotp;
          FAIL();
        }
     }
+    else {
+      result.valid = false;
+    }
   }
   return result;
 }
index 2a0380c..a52cfb0 100644 (file)
@@ -37,7 +37,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
 /* EXPORT */
 char *ldfile_input_filename;
-CONST char * ldfile_output_machine_name;
+CONST char * ldfile_output_machine_name ="";
 unsigned long ldfile_output_machine;
 enum bfd_architecture ldfile_output_architecture;
 boolean had_script;
index c9af249..741a02f 100644 (file)
@@ -276,11 +276,10 @@ command_line_option:
                        {
                        ldgram_in_defsym = true;
                        ldgram_in_expression = true;    
-                       hex_mode = true;
+
                        }
                         assignment
                        {
-                       hex_mode = false;
                        ldgram_in_defsym = false;
                        ldgram_in_expression = false;
                        }       
index 55553fa..483472c 100644 (file)
@@ -984,7 +984,9 @@ static void
 DEFUN(print_input_statement,(statm),
       lang_input_statement_type *statm)
 {
-  printf("LOAD %s\n",statm->filename);
+  if (statm->filename != (char *)NULL) {
+    printf("LOAD %s\n",statm->filename);
+  }
 }
 
 static void 
index 2651a05..613f356 100644 (file)
@@ -388,7 +388,7 @@ WHITE               [ \t]+
 }
 
 [0-9]+[KM]? {
-  if (hex_mode == true) {
+  if (hex_mode == true || ldgram_in_defsym == true) {
     yylval.integer = number(yytext, 16);
   }
   else {