Skip to content

Commit 22e919c

Browse files
committed
[NFC][test] Mark the section which contains instructions executable
As we disscussed in D77971, we haven't confirmed that if putting instructions in a non-executable section is an undefined behaviour. To make things easier to go on, we mark these sections executable in test file align-branch-section-size.s.
1 parent 7a7f223 commit 22e919c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/test/MC/X86/align-branch-section-size.s

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@
55

66
# CHECK: Name: text1
77
# CHECK: AddressAlignment: 32
8-
.section text1
8+
.section text1, "ax"
99
foo:
1010
ret
1111

1212
# CHECK: Name: text2
1313
# CHECK: AddressAlignment: 1
14-
.section text2
14+
.section text2, "ax"
1515
nop
1616

1717
# CHECK: Name: text3
1818
# CHECK: AddressAlignment: 1
19-
.section text3
19+
.section text3, "ax"
2020
jmp foo

0 commit comments

Comments
 (0)