> Symbols in the object file also look good.
>
> 015 00000000 SECT2 notype External | large_aligned_array
> 016 00000010 SECT2 notype External | large_aligned_array2
> 017 00000020 SECT2 notype External | large_aligned_array3
> 018 00000040 SECT2 notype External | large_aligned_array4
Here is another example that shows it works correctly at link time.
Regards,
Evgeny
struct T {
char v1[25];
char v2 __attribute__((aligned (8)));
char v3 __attribute__((aligned (16)));
char v4 __attribute__((aligned (32)));
char v5 __attribute__((aligned (64)));
char v6 __attribute__((aligned (128)));
char v7 __attribute__((aligned (256)));
char v8 __attribute__((aligned (512)));
};
v1: 0000000000000000
v2: 0000000000000020
v3: 0000000000000030
v4: 0000000000000040
v5: 0000000000000080
v6: 0000000000000100
v7: 0000000000000200
v8: 0000000000000400