mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 04:32:44 +01:00
28e82b6565
-t is --symbols in llvm-readobj but --section-details (unimplemented) in readelf. The confusing option should not be used since we aim for improving compatibility. Keep just one llvm-readobj -t use case in test/tools/llvm-readobj/symbols.test llvm-svn: 359661
28 lines
773 B
LLVM
28 lines
773 B
LLVM
; RUN: llc %s -o %t.o -filetype=obj -relocation-model=pic
|
|
; RUN: opt -module-summary %p/Inputs/pr19901-1.ll -o %t2.o
|
|
; RUN: %gold -plugin %llvmshlibdir/LLVMgold%shlibext \
|
|
; RUN: --plugin-opt=thinlto \
|
|
; RUN: -shared -m elf_x86_64 -o %t.so %t2.o %t.o
|
|
; RUN: llvm-readobj --symbols %t.so | FileCheck %s
|
|
|
|
; CHECK: Symbol {
|
|
; CHECK: Name: f
|
|
; CHECK-NEXT: Value:
|
|
; CHECK-NEXT: Size:
|
|
; CHECK-NEXT: Binding: Local
|
|
; CHECK-NEXT: Type: Function
|
|
; CHECK-NEXT: Other
|
|
; CHECK-NOT: Seciton
|
|
; CHECK: Section: .text
|
|
; CHECK-NEXT: }
|
|
|
|
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
|
|
target triple = "x86_64-unknown-linux-gnu"
|
|
define i32 @g() {
|
|
call void @f()
|
|
ret i32 0
|
|
}
|
|
define linkonce_odr hidden void @f() {
|
|
ret void
|
|
}
|