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/dwarf2dbg.c | |
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/dwarf2dbg.c')
-rw-r--r-- | gas/dwarf2dbg.c | 11 |
1 files changed, 7 insertions, 4 deletions
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); |