Dwarf 2 section flags ?
Brian Ford
ford@vss.fsi.com
Fri Feb 14 17:53:00 GMT 2003
More information about the Binutils mailing list
Fri Feb 14 17:53:00 GMT 2003
- Previous message (by thread): PA64 (HPUX 11.00) ld bug with -static
- Next message (by thread): Dwarf 2 section flags ?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Shouldn't the Dwarf 2 section flags that gas creates include SEC_DEBUGGING like the parallel stabs sections? Here's a trivial patch. 2003-02-14 Brian Ford <ford@vss.fsi.com> * dwarf2dbg.c (dwarf2_finish): Add SEC_DEBUGGING to section flags. -- Brian Ford Senior Realtime Software Engineer VITAL - Visual Simulation Systems FlightSafety International Phone: 314-551-8460 Fax: 314-551-8444 -------------- next part -------------- Index: dwarf2dbg.c =================================================================== RCS file: /cvs/src/src/gas/dwarf2dbg.c,v retrieving revision 1.60 diff -u -p -u -p -r1.60 dwarf2dbg.c --- dwarf2dbg.c 28 Jan 2003 11:20:36 -0000 1.60 +++ dwarf2dbg.c 14 Feb 2003 17:44:33 -0000 @@ -1431,7 +1431,7 @@ dwarf2_finish () /* 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) @@ -1460,9 +1460,12 @@ dwarf2_finish () 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);
- Previous message (by thread): PA64 (HPUX 11.00) ld bug with -static
- Next message (by thread): Dwarf 2 section flags ?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Binutils mailing list