This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [patch] djgpp dwarf2 fix
- To: binutils at sources dot redhat dot com
- Subject: Re: [patch] djgpp dwarf2 fix
- From: "Mark E." <snowball3 at bigfoot dot com>
- Date: Tue, 21 Aug 2001 17:27:01 -0400
- References: <3B82683D.27056.E31925@localhost> (snowball3@bigfoot.com)
> I noticed that coff-stgo32.c is missing some of the entries that
> coff-go32.c has. Does it need to be updated to include them?
It makes no difference in the final executable. Those .gnu.linkonce sections
end up in either .data or .text sections (with the exception of the dwarf2
linkonce sections) so they'll be aligned correctly in the executable. So it
won't hurt to add them.
Now that you bring it up, dwarf2 linkonce sections from gcc3 also need an
alignment of 0. Sorry for forgetting about them.
2001-08-21 Mark Elbrecht <snowball3@bigfoot.com>
* coff-go32.c: Set the alignment of dwarf2 linkonce sections to 0.
* coff-stgo32.c: Likewise.
Index: coff-go32.c
===================================================================
RCS file: /cvs/src/src/bfd/coff-go32.c,v
retrieving revision 1.8
diff -c -p -r1.8 coff-go32.c
*** coff-go32.c 2001/08/21 20:23:38 1.8
--- coff-go32.c 2001/08/21 21:24:28
*************** Foundation, Inc., 59 Temple Place - Suit
*** 38,43 ****
--- 38,45 ----
{ COFF_SECTION_NAME_PARTIAL_MATCH (".gnu.linkonce.r"), \
COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \
{ COFF_SECTION_NAME_PARTIAL_MATCH (".debug"), \
+ COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 0 }, \
+ { COFF_SECTION_NAME_PARTIAL_MATCH (".gnu.linkonce.wi"), \
COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 0 }
#include "coff-i386.c"
Index: coff-stgo32.c
===================================================================
RCS file: /cvs/src/src/bfd/coff-stgo32.c,v
retrieving revision 1.9
diff -c -p -r1.9 coff-stgo32.c
*** coff-stgo32.c 2001/08/21 20:23:38 1.9
--- coff-stgo32.c 2001/08/21 21:24:44
***************
*** 49,54 ****
--- 49,56 ----
{ COFF_SECTION_NAME_EXACT_MATCH (".text"), \
COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \
{ COFF_SECTION_NAME_PARTIAL_MATCH (".debug"), \
+ COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 0 } \
+ { COFF_SECTION_NAME_PARTIAL_MATCH (".gnu.linkonce.wi"), \
COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 0 }
#include "bfd.h"
Mark