[ARM] Fix group relocations test.
authorLeny Kholodov <lkholodov@accesssoftek.com>
Sat, 28 Mar 2015 01:18:10 +0000 (01:18 +0000)
committerLeny Kholodov <lkholodov@accesssoftek.com>
Sat, 28 Mar 2015 01:18:10 +0000 (01:18 +0000)
The fix is for r233277. This makes tests work.
On some build bots the test failed due to different llvm-objdump behaviour for target detection.
Now test checks .text section with etalon and illustrates correctness of generated
code without using of -disassemble llvm-objdump option.

llvm-svn: 233463

lld/test/elf/ARM/rel-group-relocs.test

index ddedb027ab802c4a8863abe71233d6c4d387119d..6c16b706e665f43aa4600b30c627e4cb5e734d8f 100644 (file)
@@ -4,16 +4,18 @@
 # RUN: yaml2obj -format=elf %s > %t-o.o
 # RUN: lld -flavor gnu -target arm -m armelf_linux_eabi -Bstatic \
 # RUN: -e plt_func %t-o.o -o %t
-# RUN: llvm-objdump -s -t %t -disassemble | FileCheck %s
+# RUN: llvm-objdump -s -t %t | FileCheck %s
 
-# CHECK: Disassembly of section .text:
-# CHECK: plt_func:
-# CHECK:   400074:     00 c6 8f e2                                     add     r12, pc, #0, #12
-#                         ^ after execution: r12=0x40007c
-# CHECK:   400078:     00 ca 8c e2                                     add     r12, r12, #0, #20
-#                         ^ after execution: r12=0x40007C
-# CHECK:   40007c:     84 ff bc e5                                     ldr     pc, [r12, #3972]!
-#                         ^ referenced address is 0x401000, after execution pc=0x400074
+# CHECK: Contents of section .text:
+# CHECK: 400074 00c68fe2 00ca8ce2 84ffbce5
+# Disassembly of section .text:
+# plt_func:
+#   400074:    00 c6 8f e2                                     add     r12, pc, #0, #12
+#                  ^ after execution: r12=0x40007c
+#   400078:    00 ca 8c e2                                     add     r12, r12, #0, #20
+#                  ^ after execution: r12=0x40007C
+#   40007c:    84 ff bc e5                                     ldr     pc, [r12, #3972]!
+#                  ^ referenced address is 0x401000, after execution pc=0x400074
 # CHECK: Contents of section .data:
 # CHECK:  401000 74004000
 #                  ^ this value is written to pc after execution of comand 0x40007c