*** 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 583b9bcc9d8287fe72ef4b2fafb7cc3c5234bf69..5d12c4656b4dd6ec6ceeea10baf79d9de0169d1f 100644 (file)
@@ -256,6 +256,9 @@ bfd_vma *dotp;
          FAIL();
        }
     }
+    else {
+      result.valid = false;
+    }
   }
   return result;
 }
index 2a0380c085a27c6a821eb0b066a6712c7aa89edb..a52cfb0b04f640529c7180a7fa81c82bb92cb1a0 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 c9af2490891c83d44c19e9b607d81724ff32fc0c..741a02fbc245c0091081ed12a19ef2136b3d1a8c 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 55553fa0ee6cad871d1a224529554d2d9714baa2..483472c6df355263a7ef2c3bce917a2c9d3bd917 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 2651a050b63522237e9e0117370ecaddd620fec0..613f356cf5870c41f804b60f307bbb6db29641c3 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 {