bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gas/5226] New: PE-COFF targets fail to set section alignment flags


From: dannysmith at users dot sourceforge dot net
Subject: [Bug gas/5226] New: PE-COFF targets fail to set section alignment flags correctly
Date: 27 Oct 2007 23:34:07 -0000

Given an alignment >16-bytes, eg

        .file   "foo.c"
        .data
.globl _x
        .align 32
_x:
        .long   1065353216
        .space 28

gas for PE-COFF targets fails to set section alignment flags correctly,
but always uses default.  So

 as foo.s | objdump -x  gives

Sections:
Idx Name          Size      VMA       LMA       File off  Algn
  0 .text         00000000  00000000  00000000  00000000  2**4
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
  1 .data         00000020  00000000  00000000  0000008c  2**4 < should be 2**5
                  ALLOC, LOAD, DATA
  2 .bss          00000000  00000000  00000000  00000000  2**4
                  ALLOC


Nor is there any warning that alignment is being set to default.

A patch for this bug has already been submitted at
http://sourceware.org/ml/binutils/2007-10/msg00325.html

-- 
           Summary: PE-COFF targets fail to set section alignment flags
                    correctly
           Product: binutils
           Version: 2.19 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gas
        AssignedTo: unassigned at sources dot redhat dot com
        ReportedBy: dannysmith at users dot sourceforge dot net
                CC: bug-binutils at gnu dot org
 GCC build triplet: i686-pc-mingw32
  GCC host triplet: i686-pc-mingw32


http://sourceware.org/bugzilla/show_bug.cgi?id=5226

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]