1// RUN: llvm-mc -filetype=obj -triple thumbv7m-arm-linux-gnu %s -o - \ 2// RUN: | llvm-readobj -S --symbols - | FileCheck %s 3 4 .section .text,"axy",%progbits,unique,0 5 .globl foo 6 .align 2 7 .type foo,%function 8 .code 16 9 .thumb_func 10foo: 11 .fnstart 12 bx lr 13.Lfunc_end0: 14 .size foo, .Lfunc_end0-foo 15 .fnend 16 17 .section ".note.GNU-stack","",%progbits 18 19 20// CHECK: Section { 21// CHECK: Name: .text (16) 22// CHECK-NEXT: Type: SHT_PROGBITS (0x1) 23// CHECK-NEXT: Flags [ (0x20000006) 24// CHECK-NEXT: SHF_ALLOC (0x2) 25// CHECK-NEXT: SHF_ARM_PURECODE (0x20000000) 26// CHECK-NEXT: SHF_EXECINSTR (0x4) 27// CHECK-NEXT: ] 28// CHECK: Size: 0 29// CHECK: } 30 31// CHECK: Section { 32// CHECK: Name: .text (16) 33// CHECK-NEXT: Type: SHT_PROGBITS (0x1) 34// CHECK-NEXT: Flags [ (0x20000006) 35// CHECK-NEXT: SHF_ALLOC (0x2) 36// CHECK-NEXT: SHF_ARM_PURECODE (0x20000000) 37// CHECK-NEXT: SHF_EXECINSTR (0x4) 38// CHECK-NEXT: ] 39// CHECK: Size: 2 40// CHECK: } 41 42// CHECK: Symbol { 43// CHECK: Name: foo (22) 44// CHECK: Section: .text (0x3) 45// CHECK: } 46