2011-05-16 18:17:21 +02:00
|
|
|
@@ test st_value bit 0 of thumb function
|
|
|
|
@ RUN: llvm-mc %s -triple=thumbv7-linux-gnueabi -filetype=obj -o - | \
|
|
|
|
@ RUN: elf-dump | FileCheck %s
|
|
|
|
.syntax unified
|
|
|
|
.text
|
|
|
|
.globl foo
|
|
|
|
.align 2
|
|
|
|
.type foo,%function
|
|
|
|
.code 16
|
|
|
|
.thumb_func
|
|
|
|
foo:
|
|
|
|
bx lr
|
|
|
|
|
|
|
|
@@ make sure foo is thumb function: bit 0 = 1 (st_value)
|
2011-08-04 16:27:46 +02:00
|
|
|
@CHECK: Symbol 4
|
2011-05-16 18:17:21 +02:00
|
|
|
@CHECK-NEXT: 'st_name', 0x00000001
|
|
|
|
@CHECK-NEXT: 'st_value', 0x00000001
|
|
|
|
@CHECK-NEXT: 'st_size', 0x00000000
|
2011-08-04 17:10:35 +02:00
|
|
|
@CHECK-NEXT: 'st_bind', 0x1
|
2011-08-04 17:24:00 +02:00
|
|
|
@CHECK-NEXT: 'st_type', 0x2
|