aboutsummaryrefslogtreecommitdiff
path: root/gas/as.c
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@cygnus>1993-12-20 15:43:23 +0000
committerKen Raeburn <raeburn@cygnus>1993-12-20 15:43:23 +0000
commit8b13fa4e5c0d23aea01573ad05ced3256f4be5c1 (patch)
tree85ab3132a923df36e2d5b330061dc2cef053b8e0 /gas/as.c
parentdbb0309d6cd3ed12c1071a1473823c0eac92113a (diff)
downloadgdb-8b13fa4e5c0d23aea01573ad05ced3256f4be5c1.zip
gdb-8b13fa4e5c0d23aea01573ad05ced3256f4be5c1.tar.gz
gdb-8b13fa4e5c0d23aea01573ad05ced3256f4be5c1.tar.bz2
* as.c (main): Call listing_print before BFD gets closed, when symbol data
hasn't been freed up yet.
Diffstat (limited to 'gas/as.c')
-rw-r--r--gas/as.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/gas/as.c b/gas/as.c
index 33a6391..215d830 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);