mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-09 21:32:49 +00: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
41 lines
887 B
ArmAsm
41 lines
887 B
ArmAsm
@@ test st_value bit 0 of thumb function
|
|
@ RUN: llvm-mc %s -triple=thumbv7-linux-gnueabi -filetype=obj -o - | \
|
|
@ RUN: llvm-readobj --symbols | FileCheck %s
|
|
.syntax unified
|
|
.text
|
|
.globl foo
|
|
.align 2
|
|
.code 16
|
|
.thumb_func
|
|
.type foo,%function
|
|
foo:
|
|
bx lr
|
|
|
|
.global bar
|
|
bar = foo
|
|
|
|
.global baz
|
|
baz = foo + 2
|
|
|
|
@@ make sure foo and bar are thumb function: bit 0 = 1 (st_value)
|
|
@CHECK: Symbol {
|
|
@CHECK: Name: bar
|
|
@CHECK-NEXT: Value: 0x1
|
|
@CHECK-NEXT: Size: 0
|
|
@CHECK-NEXT: Binding: Global
|
|
@CHECK-NEXT: Type: Function
|
|
|
|
@CHECK: Symbol {
|
|
@CHECK: Name: baz
|
|
@CHECK-NEXT: Value: 0x3
|
|
@CHECK-NEXT: Size: 0
|
|
@CHECK-NEXT: Binding: Global
|
|
@CHECK-NEXT: Type: Function
|
|
|
|
@CHECK: Symbol {
|
|
@CHECK: Name: foo
|
|
@CHECK-NEXT: Value: 0x1
|
|
@CHECK-NEXT: Size: 0
|
|
@CHECK-NEXT: Binding: Global
|
|
@CHECK-NEXT: Type: Function
|