Commit | Line | Data |
---|---|---|
39bec121 TW |
1 | * alignment directives |
2 | * .even == .align 1, .even 2 == longword boundary | |
3 | * .align [size] ; size is number of words (value must be a power of 2) | |
6e917903 TW |
4 | * NOTE: .even is broken on TI tools, so theirs won't align .data |
5 | * NOTE: TI defaults text section to DATA until opcodes are seen | |
6 | * NOTE: GAS will fill a section to its alignment; it should probably not | |
7 | * in this case. | |
39bec121 TW |
8 | .global even, align2, align8, align128 |
9 | .field 2, 3 | |
10 | .field 11, 8 | |
11 | .word 0x1, 0x2 | |
12 | .even | |
13 | even .word 0x3 | |
14 | .align 2 | |
15 | align2 .string "abcde" | |
16 | .align 8 | |
17 | align8 .word 8 | |
18 | .word 0,1,2,3,4,5,6,7 | |
19 | .align | |
20 | align128 .byte 4 | |
21 | .word 0,1,2,3,4,5,6,7 | |
6e917903 | 22 | * TI .text section total size is 0x89 words; GAS fills to 0xc0 |
6c091933 AM |
23 | * no, it doesn't fill post 2002-05-23 write.c change since we don't define |
24 | # HANDLE_ALIGN or SUB_SEGMENT_ALIGN. | |
39bec121 TW |
25 | .data |
26 | .field 2, 3 | |
27 | .field 11, 8 | |
28 | .word 0x1, 0x2 | |
29 | .even | |
30 | .word 0x3 | |
31 | .end |