]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/ELF/eh-frame-gc2.s
Vendor import of lld trunk r290819:
[FreeBSD/FreeBSD.git] / test / ELF / eh-frame-gc2.s
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
5
6 // Test that the we don't gc the personality function.
7 // CHECK: Name: .foobar
8
9         .globl  _start
10 _start:
11         .cfi_startproc
12         .cfi_personality 3, foobar
13         .cfi_endproc
14         .section .foobar,"ax"
15 foobar: