2 ## Test that text sections with LSDA are not folded.
5 # RUN: llvm-mc -filetype=obj -triple=i386 %s -o %t1.o
6 # RUN: ld.lld --icf=all %t1.o -o /dev/null --print-icf-sections | FileCheck %s --implicit-check-not=removing
8 # RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t2.o
9 # RUN: ld.lld --icf=all %t2.o -o /dev/null --print-icf-sections | FileCheck %s --implicit-check-not=removing
11 # CHECK: selected section {{.*}}.o:(.text.Z1cv)
12 # CHECK-NEXT: removing identical section {{.*}}.o:(.text.Z1dv)
14 .globl _Z1av, _Z1bv, _Z1cv, _Z1dv
15 .section .text.Z1av,"ax",@progbits
18 .cfi_lsda 27, .Lexception0
22 .section .text.Z1bv,"ax",@progbits
25 .cfi_lsda 27, .Lexception0
29 .section .text.Z1cv,"ax",@progbits
36 .section .text.Z1dv,"ax",@progbits
42 .section .gcc_except_table,"a",@progbits
43 ## The actual content does not matter.
46 ## .rodata.Z1[ab]v reference .text.Z1[ab]v. Dont fold them.
47 .section .rodata.Z1av,"a",@progbits
50 .section .rodata.Z1bv,"a",@progbits