This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Does it mean that uninitialized vars in such objects may get misaligned when linked together?
Or the "aligned" attribute takes effect only with -fno-common under mingw32?
But for a static var
C:\MSYS\home\jimeng>type x.c static short b __attribute__((aligned(16)));
C:\MSYS\home\jimeng>objdump -h x.o
Sections: Idx Name Size VMA LMA File off Algn 0 .text 00000020 00000000 00000000 0000008c 2**4 CONTENTS, ALLOC, LOAD, RELOC, READONLY, CODE 1 .data 00000000 00000000 00000000 00000000 2**2 ALLOC, LOAD, DATA 2 .bss 00000010 00000000 00000000 00000000 2**3 ALLOC
Is this by design or a bug?
Cheers Nick
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |