From d36bd0857289c3e89b170c7dcf21c4574fca701c Mon Sep 17 00:00:00 2001 From: Amir Ayupov Date: Fri, 4 Feb 2022 09:33:22 -0800 Subject: [PATCH] [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 --- bolt/test/X86/Inputs/exc4sw.S | 4 ++-- bolt/test/X86/Inputs/exc_args.s | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bolt/test/X86/Inputs/exc4sw.S b/bolt/test/X86/Inputs/exc4sw.S index f1ffc17..06bd549 100644 --- a/bolt/test/X86/Inputs/exc4sw.S +++ b/bolt/test/X86/Inputs/exc4sw.S @@ -124,7 +124,7 @@ _Z12never_throwsv: .LEHE3: .cfi_endproc .LFE14: - .section .gcc_except_table + .section .gcc_except_table,"a",@progbits .align 4 .LLSDA14: .byte 0xff @@ -317,7 +317,7 @@ main: .LEHE14: .cfi_endproc .LFE15: - .section .gcc_except_table + .section .gcc_except_table,"a",@progbits .align 4 .LLSDA15: .byte 0xff diff --git a/bolt/test/X86/Inputs/exc_args.s b/bolt/test/X86/Inputs/exc_args.s index 6140786..71853371 100755 --- a/bolt/test/X86/Inputs/exc_args.s +++ b/bolt/test/X86/Inputs/exc_args.s @@ -157,7 +157,7 @@ _Z12never_throwsv: ret .cfi_endproc .LFE17: - .section .gcc_except_table + .section .gcc_except_table,"a",@progbits .align 4 .LLSDA17: .byte 0xff @@ -304,7 +304,7 @@ main: ret .cfi_endproc .LFE18: - .section .gcc_except_table + .section .gcc_except_table,"a",@progbits .align 4 .LLSDA18: .byte 0xff -- 2.7.4