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. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils