[lld] r288802 - Make the test a bit more strict. NFC.

Rafael Espindola via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 6 04:15:13 PST 2016


Author: rafael
Date: Tue Dec  6 06:15:12 2016
New Revision: 288802

URL: http://llvm.org/viewvc/llvm-project?rev=288802&view=rev
Log:
Make the test a bit more strict. NFC.

Modified:
    lld/trunk/test/ELF/dynamic-got.s

Modified: lld/trunk/test/ELF/dynamic-got.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/dynamic-got.s?rev=288802&r1=288801&r2=288802&view=diff
==============================================================================
--- lld/trunk/test/ELF/dynamic-got.s (original)
+++ lld/trunk/test/ELF/dynamic-got.s Tue Dec  6 06:15:12 2016
@@ -1,7 +1,7 @@
 // REQUIRES: x86
 // RUN: llvm-mc -filetype=obj -triple=i386-pc-linux %s -o %t.o
 // RUN: ld.lld %t.o -o %t.so -shared
-// RUN: llvm-readobj -s -l -section-data %t.so | FileCheck %s
+// RUN: llvm-readobj -s -l -section-data -r %t.so | FileCheck %s
 
 // CHECK:      Name: .got
 // CHECK-NEXT: Type: SHT_PROGBITS
@@ -20,6 +20,12 @@
 // CHECK-NEXT:   0000: 00200000                |
 // CHECK-NEXT: )
 
+// CHECK:      Relocations [
+// CHECK-NEXT:   Section ({{.*}}) .rel.dyn {
+// CHECK-NEXT:     0x2050 R_386_RELATIVE - 0x0
+// CHECK-NEXT:   }
+// CHECK-NEXT: ]
+
 // CHECK:      Type: PT_DYNAMIC
 // CHECK-NEXT: Offset: 0x2000
 // CHECK-NEXT: VirtualAddress: 0x2000




More information about the llvm-commits mailing list