mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
7dc62cff14
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". llvm-svn: 252313
15 lines
531 B
LLVM
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
|