[lld] r343135 - [ELF][test] Use llvm-readelf's short option -r instead of -relocations and remove ignored --wide

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 26 12:48:08 PDT 2018


Author: maskray
Date: Wed Sep 26 12:48:07 2018
New Revision: 343135

URL: http://llvm.org/viewvc/llvm-project?rev=343135&view=rev
Log:
[ELF][test] Use llvm-readelf's short option -r instead of -relocations and remove ignored --wide

Reviewers: ruiu, sfertile, espindola

Reviewed By: ruiu

Subscribers: jsji, emaste, nemanjai, arichardson, kbarton, llvm-commits

Differential Revision: https://reviews.llvm.org/D52124

Modified:
    lld/trunk/test/ELF/ppc64-dtprel.s
    lld/trunk/test/ELF/ppc64-gd-to-ie.s
    lld/trunk/test/ELF/ppc64-general-dynamic-tls.s
    lld/trunk/test/ELF/ppc64-initial-exec-tls.s
    lld/trunk/test/ELF/ppc64-local-dynamic.s
    lld/trunk/test/ELF/ppc64-local-exec-tls.s
    lld/trunk/test/ELF/ppc64-tls-gd-le.s
    lld/trunk/test/ELF/ppc64-tls-ie-le.s
    lld/trunk/test/ELF/ppc64-tls-ld-le.s

Modified: lld/trunk/test/ELF/ppc64-dtprel.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/ppc64-dtprel.s?rev=343135&r1=343134&r2=343135&view=diff
==============================================================================
--- lld/trunk/test/ELF/ppc64-dtprel.s (original)
+++ lld/trunk/test/ELF/ppc64-dtprel.s Wed Sep 26 12:48:07 2018
@@ -2,15 +2,15 @@
 
 // RUN: llvm-mc -filetype=obj -triple=powerpc64le-unknown-linux %s -o %t.o
 // RUN: ld.lld -shared %t.o -o %t.so
-// RUN: llvm-readelf -relocations --wide %t.o | FileCheck --check-prefix=InputRelocs %s
-// RUN: llvm-readelf -relocations --wide %t.so | FileCheck --check-prefix=OutputRelocs %s
+// RUN: llvm-readelf -r %t.o | FileCheck --check-prefix=InputRelocs %s
+// RUN: llvm-readelf -r %t.so | FileCheck --check-prefix=OutputRelocs %s
 // RUN: llvm-objdump -D %t.so | FileCheck --check-prefix=Dis %s
 // RUN: llvm-objdump -D %t.so | FileCheck --check-prefix=GotDisLE %s
 
 // RUN: llvm-mc -filetype=obj -triple=powerpc64-unknown-linux %s -o %t.o
 // RUN: ld.lld -shared %t.o -o %t.so
-// RUN: llvm-readelf -relocations --wide %t.o | FileCheck --check-prefix=InputRelocs %s
-// RUN: llvm-readelf -relocations --wide %t.so | FileCheck --check-prefix=OutputRelocs %s
+// RUN: llvm-readelf -r %t.o | FileCheck --check-prefix=InputRelocs %s
+// RUN: llvm-readelf -r %t.so | FileCheck --check-prefix=OutputRelocs %s
 // RUN: llvm-objdump -D %t.so | FileCheck --check-prefix=Dis %s
 // RUN: llvm-objdump -D %t.so | FileCheck --check-prefix=GotDisBE %s
 

Modified: lld/trunk/test/ELF/ppc64-gd-to-ie.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/ppc64-gd-to-ie.s?rev=343135&r1=343134&r2=343135&view=diff
==============================================================================
--- lld/trunk/test/ELF/ppc64-gd-to-ie.s (original)
+++ lld/trunk/test/ELF/ppc64-gd-to-ie.s Wed Sep 26 12:48:07 2018
@@ -6,7 +6,7 @@
 # RUN: ld.lld  %t.o %t3.so -o %t
 # RUN: llvm-objdump --section-headers %t | FileCheck --check-prefix=CheckGot %s
 # RUN: llvm-objdump -d %t | FileCheck --check-prefix=Dis %s
-# RUN: llvm-readelf -relocations --wide %t | FileCheck --check-prefix=OutputRelocs %s
+# RUN: llvm-readelf -r %t | FileCheck --check-prefix=OutputRelocs %s
 
 # RUN: llvm-mc -filetype=obj -triple=powerpc64-unknown-linux %s -o %t.o
 # RUN: llvm-mc -filetype=obj -triple=powerpc64-unknown-linux %p/Inputs/ppc64-tls.s -o %t2.o
@@ -14,7 +14,7 @@
 # RUN: ld.lld  %t.o %t3.so -o %t
 # RUN: llvm-objdump --section-headers %t | FileCheck --check-prefix=CheckGot %s
 # RUN: llvm-objdump -d %t | FileCheck --check-prefix=Dis %s
-# RUN: llvm-readelf -relocations --wide %t | FileCheck --check-prefix=OutputRelocs %s
+# RUN: llvm-readelf -r %t | FileCheck --check-prefix=OutputRelocs %s
 
         .text
         .abiversion 2

Modified: lld/trunk/test/ELF/ppc64-general-dynamic-tls.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/ppc64-general-dynamic-tls.s?rev=343135&r1=343134&r2=343135&view=diff
==============================================================================
--- lld/trunk/test/ELF/ppc64-general-dynamic-tls.s (original)
+++ lld/trunk/test/ELF/ppc64-general-dynamic-tls.s Wed Sep 26 12:48:07 2018
@@ -2,15 +2,15 @@
 
 // RUN: llvm-mc -filetype=obj -triple=powerpc64le-unknown-linux %s -o %t.o
 // RUN: ld.lld -shared %t.o -o %t.so
-// RUN: llvm-readelf -relocations --wide %t.o | FileCheck --check-prefix=InputRelocs %s
-// RUN: llvm-readelf -relocations --wide %t.so | FileCheck --check-prefix=OutputRelocs %s
+// RUN: llvm-readelf -r %t.o | FileCheck --check-prefix=InputRelocs %s
+// RUN: llvm-readelf -r %t.so | FileCheck --check-prefix=OutputRelocs %s
 // RUN: llvm-objdump --section-headers %t.so | FileCheck --check-prefix=CheckGot %s
 // RUN: llvm-objdump -d %t.so | FileCheck --check-prefix=Dis %s
 
 // RUN: llvm-mc -filetype=obj -triple=powerpc64-unknown-linux %s -o %t.o
 // RUN: ld.lld -shared %t.o -o %t.so
-// RUN: llvm-readelf -relocations --wide %t.o | FileCheck --check-prefix=InputRelocs %s
-// RUN: llvm-readelf -relocations --wide %t.so | FileCheck --check-prefix=OutputRelocs %s
+// RUN: llvm-readelf -r %t.o | FileCheck --check-prefix=InputRelocs %s
+// RUN: llvm-readelf -r %t.so | FileCheck --check-prefix=OutputRelocs %s
 // RUN: llvm-objdump --section-headers %t.so | FileCheck --check-prefix=CheckGot %s
 // RUN: llvm-objdump -d %t.so | FileCheck --check-prefix=Dis %s
 

Modified: lld/trunk/test/ELF/ppc64-initial-exec-tls.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/ppc64-initial-exec-tls.s?rev=343135&r1=343134&r2=343135&view=diff
==============================================================================
--- lld/trunk/test/ELF/ppc64-initial-exec-tls.s (original)
+++ lld/trunk/test/ELF/ppc64-initial-exec-tls.s Wed Sep 26 12:48:07 2018
@@ -4,8 +4,8 @@
 // RUN: llvm-mc -filetype=obj -triple=powerpc64le-unknown-linux %p/Inputs/ppc64-tls.s -o %t2.o
 // RUN: ld.lld -shared %t2.o -o %t2.so
 // RUN: ld.lld -dynamic-linker /lib64/ld64.so.2 %t.o %t2.so -o %t
-// RUN: llvm-readelf -relocations --wide %t.o | FileCheck --check-prefix=InputRelocs %s
-// RUN: llvm-readelf -relocations --wide %t | FileCheck --check-prefix=OutputRelocs %s
+// RUN: llvm-readelf -r %t.o | FileCheck --check-prefix=InputRelocs %s
+// RUN: llvm-readelf -r %t | FileCheck --check-prefix=OutputRelocs %s
 // RUN: llvm-objdump --section-headers %t | FileCheck --check-prefix=CheckGot %s
 // RUN: llvm-objdump -d %t | FileCheck --check-prefix=Dis %s
 
@@ -13,8 +13,8 @@
 // RUN: llvm-mc -filetype=obj -triple=powerpc64-unknown-linux %p/Inputs/ppc64-tls.s -o %t2.o
 // RUN: ld.lld -shared %t2.o -o %t2.so
 // RUN: ld.lld -dynamic-linker /lib64/ld64.so.2 %t.o %t2.so -o %t
-// RUN: llvm-readelf -relocations --wide %t.o | FileCheck --check-prefix=InputRelocs %s
-// RUN: llvm-readelf -relocations --wide %t | FileCheck --check-prefix=OutputRelocs %s
+// RUN: llvm-readelf -r %t.o | FileCheck --check-prefix=InputRelocs %s
+// RUN: llvm-readelf -r %t | FileCheck --check-prefix=OutputRelocs %s
 // RUN: llvm-objdump --section-headers %t | FileCheck --check-prefix=CheckGot %s
 // RUN: llvm-objdump -d %t | FileCheck --check-prefix=Dis %s
 

Modified: lld/trunk/test/ELF/ppc64-local-dynamic.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/ppc64-local-dynamic.s?rev=343135&r1=343134&r2=343135&view=diff
==============================================================================
--- lld/trunk/test/ELF/ppc64-local-dynamic.s (original)
+++ lld/trunk/test/ELF/ppc64-local-dynamic.s Wed Sep 26 12:48:07 2018
@@ -2,15 +2,15 @@
 
 // RUN: llvm-mc -filetype=obj -triple=powerpc64le-unknown-linux %s -o %t.o
 // RUN: ld.lld -shared %t.o -o %t.so
-// RUN: llvm-readelf -relocations --wide %t.o | FileCheck --check-prefix=InputRelocs %s
-// RUN: llvm-readelf -relocations --wide %t.so | FileCheck --check-prefix=OutputRelocs %s
+// RUN: llvm-readelf -r %t.o | FileCheck --check-prefix=InputRelocs %s
+// RUN: llvm-readelf -r %t.so | FileCheck --check-prefix=OutputRelocs %s
 // RUN: llvm-objdump --section-headers %t.so | FileCheck --check-prefix=CheckGot %s
 // RUN: llvm-objdump -d %t.so | FileCheck --check-prefix=Dis %s
 
 // RUN: llvm-mc -filetype=obj -triple=powerpc64-unknown-linux %s -o %t.o
 // RUN: ld.lld -shared %t.o -o %t.so
-// RUN: llvm-readelf -relocations --wide %t.o | FileCheck --check-prefix=InputRelocs %s
-// RUN: llvm-readelf -relocations --wide %t.so | FileCheck --check-prefix=OutputRelocs %s
+// RUN: llvm-readelf -r %t.o | FileCheck --check-prefix=InputRelocs %s
+// RUN: llvm-readelf -r %t.so | FileCheck --check-prefix=OutputRelocs %s
 // RUN: llvm-objdump --section-headers %t.so | FileCheck --check-prefix=CheckGot %s
 // RUN: llvm-objdump -d %t.so | FileCheck --check-prefix=Dis %s
 

Modified: lld/trunk/test/ELF/ppc64-local-exec-tls.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/ppc64-local-exec-tls.s?rev=343135&r1=343134&r2=343135&view=diff
==============================================================================
--- lld/trunk/test/ELF/ppc64-local-exec-tls.s (original)
+++ lld/trunk/test/ELF/ppc64-local-exec-tls.s Wed Sep 26 12:48:07 2018
@@ -1,7 +1,7 @@
 // REQUIRES: ppc
 // RUN: llvm-mc -filetype=obj -triple=powerpc64le-unknown-linux %s -o %t.o
 // RUN: ld.lld  %t.o -o %t
-// RUN: llvm-readelf -relocations --wide %t.o | FileCheck --check-prefix=InputRelocs %s
+// RUN: llvm-readelf -r %t.o | FileCheck --check-prefix=InputRelocs %s
 // RUN: llvm-objdump -d %t | FileCheck --check-prefix=Dis %s
 
 	.text

Modified: lld/trunk/test/ELF/ppc64-tls-gd-le.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/ppc64-tls-gd-le.s?rev=343135&r1=343134&r2=343135&view=diff
==============================================================================
--- lld/trunk/test/ELF/ppc64-tls-gd-le.s (original)
+++ lld/trunk/test/ELF/ppc64-tls-gd-le.s Wed Sep 26 12:48:07 2018
@@ -1,16 +1,16 @@
 // REQUIRES: ppc
 
 // RUN: llvm-mc -filetype=obj -triple=powerpc64le-unknown-linux %s -o %t.o
-// RUN: llvm-readelf -relocations --wide %t.o | FileCheck --check-prefix=InputRelocs %s
+// RUN: llvm-readelf -r %t.o | FileCheck --check-prefix=InputRelocs %s
 // RUN: ld.lld  %t.o -o %t
 // RUN: llvm-objdump -d %t | FileCheck --check-prefix=Dis %s
-// RUN: llvm-readelf -relocations --wide %t | FileCheck --check-prefix=OutputRelocs %s
+// RUN: llvm-readelf -r %t | FileCheck --check-prefix=OutputRelocs %s
 
 // RUN: llvm-mc -filetype=obj -triple=powerpc64-unknown-linux %s -o %t.o
-// RUN: llvm-readelf -relocations --wide %t.o | FileCheck --check-prefix=InputRelocs %s
+// RUN: llvm-readelf -r %t.o | FileCheck --check-prefix=InputRelocs %s
 // RUN: ld.lld  %t.o -o %t
 // RUN: llvm-objdump -d %t | FileCheck --check-prefix=Dis %s
-// RUN: llvm-readelf -relocations --wide %t | FileCheck --check-prefix=OutputRelocs %s
+// RUN: llvm-readelf -r %t | FileCheck --check-prefix=OutputRelocs %s
 
 	.text
 	.abiversion 2

Modified: lld/trunk/test/ELF/ppc64-tls-ie-le.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/ppc64-tls-ie-le.s?rev=343135&r1=343134&r2=343135&view=diff
==============================================================================
--- lld/trunk/test/ELF/ppc64-tls-ie-le.s (original)
+++ lld/trunk/test/ELF/ppc64-tls-ie-le.s Wed Sep 26 12:48:07 2018
@@ -3,15 +3,15 @@
 // RUN: llvm-mc -filetype=obj -triple=powerpc64le-unknown-linux %s -o %t.o
 // RUN: llvm-mc -filetype=obj -triple=powerpc64le-unknown-linux %p/Inputs/ppc64-tls-ie-le.s -o %t2.o
 // RUN: ld.lld -dynamic-linker /lib64/ld64.so.2 %t.o %t2.o -o %t
-// RUN: llvm-readelf -relocations --wide %t.o | FileCheck --check-prefix=InputRelocs %s
-// RUN: llvm-readelf -relocations --wide %t | FileCheck --check-prefix=OutputRelocs %s
+// RUN: llvm-readelf -r %t.o | FileCheck --check-prefix=InputRelocs %s
+// RUN: llvm-readelf -r %t | FileCheck --check-prefix=OutputRelocs %s
 // RUN: llvm-objdump -d %t | FileCheck --check-prefix=Dis %s
 
 // RUN: llvm-mc -filetype=obj -triple=powerpc64-unknown-linux %s -o %t.o
 // RUN: llvm-mc -filetype=obj -triple=powerpc64-unknown-linux %p/Inputs/ppc64-tls-ie-le.s -o %t2.o
 // RUN: ld.lld -dynamic-linker /lib64/ld64.so.2 %t.o %t2.o -o %t
-// RUN: llvm-readelf -relocations --wide %t.o | FileCheck --check-prefix=InputRelocs %s
-// RUN: llvm-readelf -relocations --wide %t | FileCheck --check-prefix=OutputRelocs %s
+// RUN: llvm-readelf -r %t.o | FileCheck --check-prefix=InputRelocs %s
+// RUN: llvm-readelf -r %t | FileCheck --check-prefix=OutputRelocs %s
 // RUN: llvm-objdump -d %t | FileCheck --check-prefix=Dis %s
 
 	.text

Modified: lld/trunk/test/ELF/ppc64-tls-ld-le.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/ppc64-tls-ld-le.s?rev=343135&r1=343134&r2=343135&view=diff
==============================================================================
--- lld/trunk/test/ELF/ppc64-tls-ld-le.s (original)
+++ lld/trunk/test/ELF/ppc64-tls-ld-le.s Wed Sep 26 12:48:07 2018
@@ -1,16 +1,16 @@
 // REQUIRES: ppc
 
 // RUN: llvm-mc -filetype=obj -triple=powerpc64le-unknown-linux %s -o %t.o
-// RUN: llvm-readelf -relocations --wide %t.o | FileCheck --check-prefix=InputRelocs %s
+// RUN: llvm-readelf -r %t.o | FileCheck --check-prefix=InputRelocs %s
 // RUN: ld.lld  %t.o -o %t
 // RUN: llvm-objdump -d %t | FileCheck --check-prefix=Dis %s
-// RUN: llvm-readelf -relocations --wide %t | FileCheck --check-prefix=OutputRelocs %s
+// RUN: llvm-readelf -r %t | FileCheck --check-prefix=OutputRelocs %s
 
 // RUN: llvm-mc -filetype=obj -triple=powerpc64-unknown-linux %s -o %t.o
-// RUN: llvm-readelf -relocations --wide %t.o | FileCheck --check-prefix=InputRelocs %s
+// RUN: llvm-readelf -r %t.o | FileCheck --check-prefix=InputRelocs %s
 // RUN: ld.lld  %t.o -o %t
 // RUN: llvm-objdump -d %t | FileCheck --check-prefix=Dis %s
-// RUN: llvm-readelf -relocations --wide %t | FileCheck --check-prefix=OutputRelocs %s
+// RUN: llvm-readelf -r %t | FileCheck --check-prefix=OutputRelocs %s
 
 	.text
 	.abiversion 2




More information about the llvm-commits mailing list