From: Ken Raeburn Date: Mon, 20 Dec 1993 15:43:23 +0000 (+0000) Subject: * as.c (main): Call listing_print before BFD gets closed, when symbol data X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8b13fa4e5c0d23aea01573ad05ced3256f4be5c1;p=binutils-gdb.git * as.c (main): Call listing_print before BFD gets closed, when symbol data hasn't been freed up yet. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 415f7fc184c..9094135068b 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,13 @@ +Mon Dec 20 10:37:48 1993 Ken Raeburn (raeburn@cujo.cygnus.com) + + * as.c (main): Call listing_print before BFD gets closed, when + symbol data hasn't been freed up yet. + +Sun Dec 19 00:37:20 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) + + * config/tc-sparc.c (tc_gen_reloc): Test of pcrel_offset had sense + reversed. + Thu Dec 16 21:13:11 1993 Jeffrey A. Law (law@snake.cs.utah.edu) * config/tc-hppa.c (md_begin): Initialize "dummy_label". diff --git a/gas/as.c b/gas/as.c index 33a639184e0..215d830197e 100644 --- a/gas/as.c +++ b/gas/as.c @@ -268,13 +268,7 @@ main (argc, argv) case 'R': /* -R means put data into text segment */ -#ifdef NO_FOLD_DATA_AND_TEXT - as_warn ("-R option not supported on this target."); - flag_readonly_data_in_text = 0; - flagseen['R'] = 0; -#else flag_readonly_data_in_text = 1; -#endif break; case 'v': @@ -341,6 +335,11 @@ main (argc, argv) #ifdef TC_I960 brtab_emit (); #endif + +#ifndef NO_LISTING + listing_print (""); +#endif + if (seen_at_least_1_file () && !((had_warnings () && flag_always_generate_output) || had_errors () > 0)) @@ -358,10 +357,6 @@ main (argc, argv) input_scrub_end (); md_end (); /* MACHINE.c */ -#ifndef NO_LISTING - listing_print (""); -#endif - if ((had_warnings () && flagseen['Z']) || had_errors () > 0) return EXIT_FAILURE; @@ -432,6 +427,7 @@ perform_an_assembly_pass (argc, argv) bfd_set_section_flags (stdoutput, data_section, applicable & (SEC_ALLOC | SEC_LOAD | SEC_RELOC)); bfd_set_section_flags (stdoutput, bss_section, applicable & SEC_ALLOC); + seg_info (bss_section)->bss = 1; subseg_new (BFD_ABS_SECTION_NAME, 0); subseg_new (BFD_UND_SECTION_NAME, 0); reg_section = subseg_new ("*GAS `reg' section*", 0);