2014-08-21 20:28:55 +00:00
|
|
|
; RUN: llc %s -o %t.o -filetype=obj -relocation-model=pic
|
|
|
|
; RUN: llvm-as %p/Inputs/pr19901-1.ll -o %t2.o
|
2015-03-24 22:20:19 +00:00
|
|
|
; RUN: %gold -plugin %llvmshlibdir/LLVMgold.so \
|
|
|
|
; RUN: -shared -m elf_x86_64 -o %t.so %t2.o %t.o
|
2014-09-03 16:16:02 +00:00
|
|
|
; RUN: llvm-readobj -t %t.so | FileCheck %s
|
2014-08-21 20:28:55 +00:00
|
|
|
|
2014-09-03 16:16:02 +00:00
|
|
|
; CHECK: Symbol {
|
|
|
|
; CHECK: Name: f
|
|
|
|
; CHECK-NEXT: Value:
|
|
|
|
; CHECK-NEXT: Size:
|
|
|
|
; CHECK-NEXT: Binding: Local
|
|
|
|
; CHECK-NEXT: Type: Function
|
2015-02-15 09:32:30 +00:00
|
|
|
; CHECK-NEXT: Other: {{2|0}}
|
2014-09-03 16:16:02 +00:00
|
|
|
; CHECK-NEXT: Section: .text
|
|
|
|
; CHECK-NEXT: }
|
2014-08-21 20:28:55 +00:00
|
|
|
|
|
|
|
target triple = "x86_64-unknown-linux-gnu"
|
|
|
|
define i32 @g() {
|
|
|
|
call void @f()
|
|
|
|
ret i32 0
|
|
|
|
}
|
|
|
|
define linkonce_odr hidden void @f() {
|
|
|
|
ret void
|
|
|
|
}
|