1// RUN: llvm-mc -filetype=obj -triple thumbv7m-arm-linux-gnu %s -o - \ 2// RUN: | llvm-readobj -s -t | 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 [ (0x6) 24// CHECK-NEXT: SHF_ALLOC (0x2) 25// CHECK-NEXT: SHF_EXECINSTR (0x4) 26// CHECK-NEXT: ] 27// CHECK: Size: 0 28// CHECK: } 29 30// CHECK: Section { 31// CHECK: Name: .text (16) 32// CHECK-NEXT: Type: SHT_PROGBITS (0x1) 33// CHECK-NEXT: Flags [ (0x20000006) 34// CHECK-NEXT: SHF_ALLOC (0x2) 35// CHECK-NEXT: SHF_ARM_PURECODE (0x20000000) 36// CHECK-NEXT: SHF_EXECINSTR (0x4) 37// CHECK-NEXT: ] 38// CHECK: Size: 2 39// CHECK: } 40 41// CHECK: Symbol { 42// CHECK: Name: foo (22) 43// CHECK: Section: .text (0x3) 44// CHECK: } 45