diff options
author | Steve Chamberlain <steve@cygnus> | 1991-04-16 14:32:02 +0000 |
---|---|---|
committer | Steve Chamberlain <steve@cygnus> | 1991-04-16 14:32:02 +0000 |
commit | 070aa81923459dd32e158095f243e99b02bfb579 (patch) | |
tree | 86954be5f52ad8738d742493a8fb5f6cc4d0ab07 | |
parent | 6408afbac5660871c8ce3a6be951e78535346d14 (diff) | |
download | gdb-070aa81923459dd32e158095f243e99b02bfb579.zip gdb-070aa81923459dd32e158095f243e99b02bfb579.tar.gz gdb-070aa81923459dd32e158095f243e99b02bfb579.tar.bz2 |
*** empty log message ***
-rw-r--r-- | ld/ldexp.c | 3 | ||||
-rw-r--r-- | ld/ldfile.c | 2 | ||||
-rw-r--r-- | ld/ldgram.y | 3 | ||||
-rw-r--r-- | ld/ldlang.c | 4 | ||||
-rw-r--r-- | ld/ldlex.l | 2 |
5 files changed, 9 insertions, 5 deletions
@@ -256,6 +256,9 @@ bfd_vma *dotp; FAIL(); } } + else { + result.valid = false; + } } return result; } diff --git a/ld/ldfile.c b/ld/ldfile.c index 2a0380c..a52cfb0 100644 --- a/ld/ldfile.c +++ b/ld/ldfile.c @@ -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; diff --git a/ld/ldgram.y b/ld/ldgram.y index c9af249..741a02f 100644 --- a/ld/ldgram.y +++ b/ld/ldgram.y @@ -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; } diff --git a/ld/ldlang.c b/ld/ldlang.c index 55553fa..483472c 100644 --- a/ld/ldlang.c +++ b/ld/ldlang.c @@ -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 @@ -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 { |