From 070aa81923459dd32e158095f243e99b02bfb579 Mon Sep 17 00:00:00 2001 From: Steve Chamberlain Date: Tue, 16 Apr 1991 14:32:02 +0000 Subject: [PATCH] *** empty log message *** --- ld/ldexp.c | 3 +++ ld/ldfile.c | 2 +- ld/ldgram.y | 3 +-- ld/ldlang.c | 4 +++- ld/ldlex.l | 2 +- 5 files changed, 9 insertions(+), 5 deletions(-) diff --git a/ld/ldexp.c b/ld/ldexp.c index 583b9bcc9d8..5d12c4656b4 100644 --- a/ld/ldexp.c +++ b/ld/ldexp.c @@ -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 2a0380c085a..a52cfb0b04f 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 c9af2490891..741a02fbc24 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 55553fa0ee6..483472c6df3 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 diff --git a/ld/ldlex.l b/ld/ldlex.l index 2651a050b63..613f356cf58 100644 --- a/ld/ldlex.l +++ b/ld/ldlex.l @@ -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 { -- 2.30.2