21 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=i686-pc-linux %s -o %t.o3# RUN: ld.lld -shared --gc-sections %t.o -o %t4# RUN: llvm-readobj -S %t | FileCheck %s5 6## Check that section containing personality is7## not garbage collected.8# CHECK: Sections [9# CHECK: Name: .test_personality_section10 11.text12.globl foo13.type foo,@function14foo:15 .cfi_startproc16 .cfi_personality 155, DW.ref.__gxx_personality_v017 .cfi_endproc18 19.section .test_personality_section20DW.ref.__gxx_personality_v0:21