1# REQUIRES: x86 2# RUN: llvm-mc -filetype=obj -triple=i686-pc-linux %s -o %t.o 3# RUN: ld.lld -shared --gc-sections %t.o -o %t 4# RUN: llvm-readobj -S %t | FileCheck %s 5 6## Check that section containing personality is 7## not garbage collected. 8# CHECK: Sections [ 9# CHECK: Name: .test_personality_section 10 11.text 12.globl foo 13.type foo,@function 14foo: 15 .cfi_startproc 16 .cfi_personality 155, DW.ref.__gxx_personality_v0 17 .cfi_endproc 18 19.section .test_personality_section 20DW.ref.__gxx_personality_v0: 21