Skip to content

Commit d36bd08

Browse files
committed
[BOLT][TEST] Add section flags for .gcc_except_table
clang-10 complains about changed section flags in two tests: - X86/shrinkwrapping.test - X86/exceptions-args.test Fix that by adding the missing flags. Reviewed By: yota9 Differential Revision: https://reviews.llvm.org/D119014
1 parent 6dbba77 commit d36bd08

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

bolt/test/X86/Inputs/exc4sw.S

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ _Z12never_throwsv:
124124
.LEHE3:
125125
.cfi_endproc
126126
.LFE14:
127-
.section .gcc_except_table
127+
.section .gcc_except_table,"a",@progbits
128128
.align 4
129129
.LLSDA14:
130130
.byte 0xff
@@ -317,7 +317,7 @@ main:
317317
.LEHE14:
318318
.cfi_endproc
319319
.LFE15:
320-
.section .gcc_except_table
320+
.section .gcc_except_table,"a",@progbits
321321
.align 4
322322
.LLSDA15:
323323
.byte 0xff

bolt/test/X86/Inputs/exc_args.s

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ _Z12never_throwsv:
157157
ret
158158
.cfi_endproc
159159
.LFE17:
160-
.section .gcc_except_table
160+
.section .gcc_except_table,"a",@progbits
161161
.align 4
162162
.LLSDA17:
163163
.byte 0xff
@@ -304,7 +304,7 @@ main:
304304
ret
305305
.cfi_endproc
306306
.LFE18:
307-
.section .gcc_except_table
307+
.section .gcc_except_table,"a",@progbits
308308
.align 4
309309
.LLSDA18:
310310
.byte 0xff

0 commit comments

Comments
 (0)