Change how we iterate over relocations on ELF.
[oota-llvm.git] / test / MC / ARM / elf-thumbfunc-reloc.s
1 @@ test st_value bit 0 of thumb function
2 @ RUN: llvm-mc %s -triple=arm-freebsd-eabi -filetype=obj -o - | \
3 @ RUN: llvm-readobj -r  | FileCheck %s
4
5
6         .syntax unified
7         .text
8         .globl  f
9         .align  2
10         .type   f,%function
11         .code   16
12         .thumb_func
13 f:
14         push    {r7, lr}
15         mov     r7, sp
16         bl      g
17         pop     {r7, pc}
18
19 @@ make sure an R_ARM_THM_CALL relocation is generated for the call to g
20 @CHECK:      Relocations [
21 @CHECK-NEXT:   Section (2) .rel.text {
22 @CHECK-NEXT:     0x4 R_ARM_THM_CALL g 0x0
23 @CHECK-NEXT:   }
24 @CHECK-NEXT: ]