diff options
author | Nick Clifton <nickc@redhat.com> | 2004-04-29 16:40:20 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2004-04-29 16:40:20 +0000 |
commit | 8a7140c38f21984c512ac97bcfa2f0d7417bdc27 (patch) | |
tree | 76e7acd4ab2d9c332be69e6b4cdb49984c2c57d2 /gas | |
parent | e63bbc887e4d3f7cd78ed15a1fe478e0a9eb4f8e (diff) | |
download | gdb-8a7140c38f21984c512ac97bcfa2f0d7417bdc27.zip gdb-8a7140c38f21984c512ac97bcfa2f0d7417bdc27.tar.gz gdb-8a7140c38f21984c512ac97bcfa2f0d7417bdc27.tar.bz2 |
Add support for generating DWARF2 debug sections in the x86 PE port
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 4 | ||||
-rw-r--r-- | gas/dwarf2dbg.c | 11 |
2 files changed, 11 insertions, 4 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 59c0336..8743b24 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,7 @@ +2004-04-29 Brian Ford <ford@vss.fsi.com> + + * dwarf2dbg.c (dwarf2_finish): Add SEC_DEBUGGING to section flags. + 2004-04-28 Chris Demetriou <cgd@broadcom.com> * config/tc-mips.c (HAVE_32BIT_ADDRESSES, append_insn, macro_build) diff --git a/gas/dwarf2dbg.c b/gas/dwarf2dbg.c index 3336453..59da56a 100644 --- a/gas/dwarf2dbg.c +++ b/gas/dwarf2dbg.c @@ -1371,7 +1371,7 @@ dwarf2_finish (void) /* Create and switch to the line number section. */ line_seg = subseg_new (".debug_line", 0); - bfd_set_section_flags (stdoutput, line_seg, SEC_READONLY); + bfd_set_section_flags (stdoutput, line_seg, SEC_READONLY | SEC_DEBUGGING); /* For each subsection, chain the debug entries together. */ for (s = all_segs; s; s = s->next) @@ -1400,9 +1400,12 @@ dwarf2_finish (void) abbrev_seg = subseg_new (".debug_abbrev", 0); aranges_seg = subseg_new (".debug_aranges", 0); - 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); + bfd_set_section_flags (stdoutput, info_seg, + SEC_READONLY | SEC_DEBUGGING); + bfd_set_section_flags (stdoutput, abbrev_seg, + SEC_READONLY | SEC_DEBUGGING); + bfd_set_section_flags (stdoutput, aranges_seg, + SEC_READONLY | SEC_DEBUGGING); record_alignment (aranges_seg, ffs (2 * sizeof_address) - 1); |