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
Created attachment 2063 [details] Testcase for large alignment
An updated patch for this bug has been submitted at http://sourceware.org/ml/binutils/2007-11/msg00027.html
Fixed http://sourceware.org/ml/binutils-cvs/2007-11/msg00013.html