llvm/test/CodeGen/X86/eh_frame.ll
Rafael Espindola 012d959bc5 Bring r252305 back with a test fix.
We now create the .eh_frame section early, just like every other special
section.

This means that the special flags are visible in code that explicitly
asks for ".eh_frame".

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252313 91177308-0d34-0410-b5e6-96231b3b80d8
2015-11-06 15:30:45 +00:00

15 lines
531 B
LLVM

; RUN: llc < %s -mtriple x86_64-unknown-linux-gnu | FileCheck -check-prefix=STATIC %s
; RUN: llc < %s -mtriple x86_64-unknown-linux-gnu -relocation-model=pic | FileCheck -check-prefix=PIC %s
@__FRAME_END__ = constant [1 x i32] zeroinitializer, section ".eh_frame"
@foo = external global i32
@bar1 = constant i8* bitcast (i32* @foo to i8*), section "my_bar1", align 8
; STATIC: .section .eh_frame,"a",@unwind
; STATIC: .section my_bar1,"a",@progbits
; PIC: .section .eh_frame,"a",@unwind
; PIC: .section my_bar1,"aw",@progbits