From 6becba734b7758fc37c2f20a44a474462d0adbbf Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Fri, 22 Dec 2000 20:36:02 +0000 Subject: [PATCH] 2000-12-22 H.J. Lu * dwarf2dbg.c (dwarf2_finish): Remove #if BFD_ASSEMBLER. --- gas/ChangeLog | 4 ++++ gas/dwarf2dbg.c | 9 --------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 1783a2efa..eac4815d0 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,7 @@ +2000-12-22 H.J. Lu + + * dwarf2dbg.c (dwarf2_finish): Remove #if BFD_ASSEMBLER. + Wed Dec 20 14:21:22 MET 2000 Jan Hubicka * tc-i386.h (i386_target_format): Define even for ELFs. diff --git a/gas/dwarf2dbg.c b/gas/dwarf2dbg.c index 13f487e97..c24d85ab4 100644 --- a/gas/dwarf2dbg.c +++ b/gas/dwarf2dbg.c @@ -1197,18 +1197,11 @@ dwarf2_finish () return; /* Calculate the size of an address for the target machine. */ -#ifdef BFD_ASSEMBLER sizeof_address = bfd_arch_bits_per_address (stdoutput) / 8; -#else - /* FIXME. */ - sizeof_address = 4; -#endif /* Create and switch to the line number section. */ line_seg = subseg_new (".debug_line", 0); -#ifdef BFD_ASSEMBLER bfd_set_section_flags (stdoutput, line_seg, SEC_READONLY); -#endif /* For each subsection, chain the debug entries together. */ for (s = all_segs; s; s = s->next) @@ -1237,11 +1230,9 @@ dwarf2_finish () abbrev_seg = subseg_new (".debug_abbrev", 0); aranges_seg = subseg_new (".debug_aranges", 0); -#ifdef BFD_ASSEMBLER bfd_set_section_flags (stdoutput, info_seg, SEC_READONLY); bfd_set_section_flags (stdoutput, abbrev_seg, SEC_READONLY); bfd_set_section_flags (stdoutput, aranges_seg, SEC_READONLY); -#endif record_alignment (aranges_seg, ffs (2 * sizeof_address) - 1); -- 2.11.4.GIT