[llvm] Do not replace dead constant references in metadata with undef
[llvm-project.git] / lld / test / ELF / eh-frame-gc2.s
bloba4043d5da5bb4adc825f92f2b038a0d7012be99a
1 // REQUIRES: x86
2 // RUN: llvm-mc -filetype=obj -triple=i686-pc-linux %s -o %t.o
3 // RUN: ld.lld --gc-sections %t.o -o %t
4 // RUN: llvm-readobj -S %t | FileCheck %s
6 // Test that the we don't gc the personality function.
7 // CHECK: Name: .foobar
9 .globl _start
10 _start:
11 .cfi_startproc
12 .cfi_personality 3, foobar
13 .cfi_endproc
14 .section .foobar,"ax"
15 foobar: