[lld] r375096 - [LLD][ELF] - Update test cases after llvm-readobj output format change.
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 17 03:24:00 PDT 2019
Author: grimar
Date: Thu Oct 17 03:23:59 2019
New Revision: 375096
URL: http://llvm.org/viewvc/llvm-project?rev=375096&view=rev
Log:
[LLD][ELF] - Update test cases after llvm-readobj output format change.
The change was:
SHT_GNU_verdef { -> VersionDefinitions [
SHT_GNU_verneed { -> VersionRequirements [
Version symbols [ -> VersionSymbols [
EH_FRAME Header [ -> EHFrameHeader {
Modified:
lld/trunk/test/ELF/empty-ver.s
lld/trunk/test/ELF/empty-ver2.s
lld/trunk/test/ELF/linkerscript/version-script.s
lld/trunk/test/ELF/partition-synthetic-sections.s
lld/trunk/test/ELF/verdef-defaultver.s
lld/trunk/test/ELF/verdef-dependency.s
lld/trunk/test/ELF/verdef.s
lld/trunk/test/ELF/verneed-as-needed-weak.s
lld/trunk/test/ELF/verneed.s
lld/trunk/test/ELF/version-script-extern-undefined.s
lld/trunk/test/ELF/version-script-extern-wildcards.s
lld/trunk/test/ELF/version-script-extern.s
lld/trunk/test/ELF/version-script-extern2.s
lld/trunk/test/ELF/version-script-locals-extern.s
lld/trunk/test/ELF/version-script-symver2.s
Modified: lld/trunk/test/ELF/empty-ver.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/empty-ver.s?rev=375096&r1=375095&r2=375096&view=diff
==============================================================================
--- lld/trunk/test/ELF/empty-ver.s (original)
+++ lld/trunk/test/ELF/empty-ver.s Thu Oct 17 03:23:59 2019
@@ -21,7 +21,7 @@
// CHECK-NEXT: 0000: 00666F6F 00742E73 6F007665 7200 |.foo.t.so.ver.|
// CHECK-NEXT: )
-// CHECK: Version symbols [
+// CHECK: VersionSymbols [
// CHECK-NEXT: Symbol {
// CHECK-NEXT: Version: 0
// CHECK-NEXT: Name:
Modified: lld/trunk/test/ELF/empty-ver2.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/empty-ver2.s?rev=375096&r1=375095&r2=375096&view=diff
==============================================================================
--- lld/trunk/test/ELF/empty-ver2.s (original)
+++ lld/trunk/test/ELF/empty-ver2.s Thu Oct 17 03:23:59 2019
@@ -5,7 +5,7 @@
# RUN: ld.lld %t.o -o t.so -shared -version-script %p/Inputs/empty-ver.ver
# RUN: llvm-readobj --version-info t.so | FileCheck %s
-# CHECK: Version symbols [
+# CHECK: VersionSymbols [
# CHECK-NEXT: Symbol {
# CHECK-NEXT: Version: 0
# CHECK-NEXT: Name:
Modified: lld/trunk/test/ELF/linkerscript/version-script.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/linkerscript/version-script.s?rev=375096&r1=375095&r2=375096&view=diff
==============================================================================
--- lld/trunk/test/ELF/linkerscript/version-script.s (original)
+++ lld/trunk/test/ELF/linkerscript/version-script.s Thu Oct 17 03:23:59 2019
@@ -11,7 +11,7 @@
# RUN: llvm-readobj -V %t.so | FileCheck %s
## Check that we are able to version symbols defined in script.
-# CHECK: Version symbols [
+# CHECK: VersionSymbols [
# CHECK-NEXT: Symbol {
# CHECK-NEXT: Version: 0
# CHECK-NEXT: Name:
@@ -38,7 +38,7 @@
# RUN: echo "und = 0x1; VERSION { V { global: und; local: *; }; }" > %t.script
# RUN: ld.lld -T %t.script -shared --no-undefined-version %t.o -o %t.so
# RUN: llvm-readobj -V %t.so | FileCheck %s --check-prefix=UNDEF
-# UNDEF: Version symbols [
+# UNDEF: VersionSymbols [
# UNDEF-NEXT: Symbol {
# UNDEF-NEXT: Version: 0
# UNDEF-NEXT: Name:
Modified: lld/trunk/test/ELF/partition-synthetic-sections.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/partition-synthetic-sections.s?rev=375096&r1=375095&r2=375096&view=diff
==============================================================================
--- lld/trunk/test/ELF/partition-synthetic-sections.s (original)
+++ lld/trunk/test/ELF/partition-synthetic-sections.s Thu Oct 17 03:23:59 2019
@@ -88,7 +88,7 @@
// 0x490 + 0x3b70 = 0x4000
// PART-INDEX-NEXT: 048c 26ffffff 703b0000 50410000
-// CHECK: {{.*}}EH_FRAME Header
+// CHECK: {{.*}}EHFrameHeader
// CHECK: Address: 0x[[EH_FRAME_HDR_ADDR]]
// CHECK: eh_frame_ptr: 0x[[EH_FRAME_ADDR]]
// CHECK: initial_location: 0x[[TEXT_ADDR]]
Modified: lld/trunk/test/ELF/verdef-defaultver.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/verdef-defaultver.s?rev=375096&r1=375095&r2=375096&view=diff
==============================================================================
--- lld/trunk/test/ELF/verdef-defaultver.s (original)
+++ lld/trunk/test/ELF/verdef-defaultver.s Thu Oct 17 03:23:59 2019
@@ -53,7 +53,7 @@
# DSO-NEXT: Section: .text
# DSO-NEXT: }
# DSO-NEXT: ]
-# DSO-NEXT: Version symbols [
+# DSO-NEXT: VersionSymbols [
# DSO-NEXT: Symbol {
# DSO-NEXT: Version: 0
# DSO-NEXT: Name:
@@ -75,7 +75,7 @@
# DSO-NEXT: Name: c@@V2
# DSO-NEXT: }
# DSO-NEXT: ]
-# DSO-NEXT: SHT_GNU_verdef {
+# DSO-NEXT: VersionDefinitions [
# DSO-NEXT: Definition {
# DSO-NEXT: Version: 1
# DSO-NEXT: Flags: Base
@@ -97,7 +97,7 @@
# DSO-NEXT: Hash: 1426
# DSO-NEXT: Name: V2
# DSO-NEXT: }
-# DSO-NEXT: }
+# DSO-NEXT: ]
## Check that we can link against DSO produced.
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t2
@@ -142,7 +142,7 @@
# EXE-NEXT: Section: Undefined
# EXE-NEXT: }
# EXE-NEXT: ]
-# EXE-NEXT: Version symbols [
+# EXE-NEXT: VersionSymbols [
# EXE-NEXT: Symbol {
# EXE-NEXT: Version: 0
# EXE-NEXT: Name:
@@ -160,9 +160,9 @@
# EXE-NEXT: Name: c at V2
# EXE-NEXT: }
# EXE-NEXT: ]
-# EXE-NEXT: SHT_GNU_verdef {
-# EXE-NEXT: }
-# EXE-NEXT: SHT_GNU_verneed {
+# EXE-NEXT: VersionDefinitions [
+# EXE-NEXT: ]
+# EXE-NEXT: VersionRequirements [
# EXE-NEXT: Dependency {
# EXE-NEXT: Version: 1
# EXE-NEXT: Count: 2
@@ -182,7 +182,7 @@
# EXE-NEXT: }
# EXE-NEXT: ]
# EXE-NEXT: }
-# EXE-NEXT: }
+# EXE-NEXT: ]
.globl _start
_start:
Modified: lld/trunk/test/ELF/verdef-dependency.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/verdef-dependency.s?rev=375096&r1=375095&r2=375096&view=diff
==============================================================================
--- lld/trunk/test/ELF/verdef-dependency.s (original)
+++ lld/trunk/test/ELF/verdef-dependency.s Thu Oct 17 03:23:59 2019
@@ -6,7 +6,7 @@
# RUN: ld.lld --version-script %t.script -shared -soname shared %t.o -o %t.so
# RUN: llvm-readobj -V --dyn-syms %t.so | FileCheck --check-prefix=DSO %s
-# DSO: SHT_GNU_verdef {
+# DSO: VersionDefinitions [
# DSO-NEXT: Definition {
# DSO-NEXT: Version: 1
# DSO-NEXT: Flags: Base
@@ -35,4 +35,4 @@
# DSO-NEXT: Hash: 98456672
# DSO-NEXT: Name: LIBSAMPLE_3.0
# DSO-NEXT: }
-# DSO-NEXT: }
+# DSO-NEXT: ]
Modified: lld/trunk/test/ELF/verdef.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/verdef.s?rev=375096&r1=375095&r2=375096&view=diff
==============================================================================
--- lld/trunk/test/ELF/verdef.s (original)
+++ lld/trunk/test/ELF/verdef.s Thu Oct 17 03:23:59 2019
@@ -6,7 +6,7 @@
# RUN: ld.lld --hash-style=sysv --version-script %t.script -shared -soname shared %t.o -o %t.so
# RUN: llvm-readobj -V --dyn-syms %t.so | FileCheck --check-prefix=DSO %s
-# DSO: Version symbols [
+# DSO: VersionSymbols [
# DSO-NEXT: Symbol {
# DSO-NEXT: Version: 0
# DSO-NEXT: Name:
@@ -24,7 +24,7 @@
# DSO-NEXT: Name: c@@LIBSAMPLE_3.0
# DSO-NEXT: }
# DSO-NEXT: ]
-# DSO-NEXT: SHT_GNU_verdef {
+# DSO-NEXT: VersionDefinitions [
# DSO-NEXT: Definition {
# DSO-NEXT: Version: 1
# DSO-NEXT: Flags: Base
@@ -53,16 +53,16 @@
# DSO-NEXT: Hash: 98456672
# DSO-NEXT: Name: LIBSAMPLE_3.0
# DSO-NEXT: }
-# DSO-NEXT: }
-# DSO-NEXT: SHT_GNU_verneed {
-# DSO-NEXT: }
+# DSO-NEXT: ]
+# DSO-NEXT: VersionRequirements [
+# DSO-NEXT: ]
## Check that we can link agains DSO we produced.
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %S/Inputs/verdef.s -o %tmain.o
# RUN: ld.lld --hash-style=sysv %tmain.o %t.so -o %tout
# RUN: llvm-readobj -V %tout | FileCheck --check-prefix=MAIN %s
-# MAIN: Version symbols [
+# MAIN: VersionSymbols [
# MAIN-NEXT: Symbol {
# MAIN-NEXT: Version: 0
# MAIN-NEXT: Name:
@@ -80,8 +80,8 @@
# MAIN-NEXT: Name: c at LIBSAMPLE_3.0
# MAIN-NEXT: }
# MAIN-NEXT: ]
-# MAIN-NEXT: SHT_GNU_verdef {
-# MAIN-NEXT: }
+# MAIN-NEXT: VersionDefinitions [
+# MAIN-NEXT: ]
# RUN: echo "VERSION {" > %t.script
# RUN: echo "LIBSAMPLE_1.0 { global: a; local: *; };" >> %t.script
Modified: lld/trunk/test/ELF/verneed-as-needed-weak.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/verneed-as-needed-weak.s?rev=375096&r1=375095&r2=375096&view=diff
==============================================================================
--- lld/trunk/test/ELF/verneed-as-needed-weak.s (original)
+++ lld/trunk/test/ELF/verneed-as-needed-weak.s Thu Oct 17 03:23:59 2019
@@ -7,8 +7,8 @@
# RUN: ld.lld %t.o --as-needed %t.so -o %t
# RUN: llvm-readobj -V %t | FileCheck %s
-# CHECK: SHT_GNU_verneed {
-# CHECK-NEXT: }
+# CHECK: VersionRequirements [
+# CHECK-NEXT: ]
.weak f1
Modified: lld/trunk/test/ELF/verneed.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/verneed.s?rev=375096&r1=375095&r2=375096&view=diff
==============================================================================
--- lld/trunk/test/ELF/verneed.s (original)
+++ lld/trunk/test/ELF/verneed.s Thu Oct 17 03:23:59 2019
@@ -117,7 +117,7 @@
# CHECK-NEXT: 0x000000006FFFFFFE VERNEED [[VERNEED]]
# CHECK-NEXT: 0x000000006FFFFFFF VERNEEDNUM 2
-# CHECK: Version symbols [
+# CHECK: VersionSymbols [
# CHECK-NEXT: Symbol {
# CHECK-NEXT: Version: 0
# CHECK-NEXT: Name:
@@ -135,9 +135,9 @@
# CHECK-NEXT: Name: g1 at v1
# CHECK-NEXT: }
# CHECK-NEXT: ]
-# CHECK-NEXT: SHT_GNU_verdef {
-# CHECK-NEXT: }
-# CHECK-NEXT: SHT_GNU_verneed {
+# CHECK-NEXT: VersionDefinitions [
+# CHECK-NEXT: ]
+# CHECK-NEXT: VersionRequirements [
# CHECK-NEXT: Dependency {
# CHECK-NEXT: Version: 1
# CHECK-NEXT: Count: 2
@@ -170,7 +170,7 @@
# CHECK-NEXT: }
# CHECK-NEXT: ]
# CHECK-NEXT: }
-# CHECK-NEXT: }
+# CHECK-NEXT: ]
.globl _start
_start:
Modified: lld/trunk/test/ELF/version-script-extern-undefined.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/version-script-extern-undefined.s?rev=375096&r1=375095&r2=375096&view=diff
==============================================================================
--- lld/trunk/test/ELF/version-script-extern-undefined.s (original)
+++ lld/trunk/test/ELF/version-script-extern-undefined.s Thu Oct 17 03:23:59 2019
@@ -5,7 +5,7 @@
# RUN: ld.lld --version-script %t.script -shared %t.o -o %t.so
# RUN: llvm-readobj -V %t.so | FileCheck %s
-# CHECK: Version symbols [
+# CHECK: VersionSymbols [
# CHECK-NEXT: Symbol {
# CHECK-NEXT: Version: 0
# CHECK-NEXT: Name:
Modified: lld/trunk/test/ELF/version-script-extern-wildcards.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/version-script-extern-wildcards.s?rev=375096&r1=375095&r2=375096&view=diff
==============================================================================
--- lld/trunk/test/ELF/version-script-extern-wildcards.s (original)
+++ lld/trunk/test/ELF/version-script-extern-wildcards.s Thu Oct 17 03:23:59 2019
@@ -6,7 +6,7 @@
# RUN: ld.lld --version-script %t.script -shared %t.o -o %t.so
# RUN: llvm-readobj -V --dyn-syms %t.so | FileCheck %s
-# CHECK: Version symbols [
+# CHECK: VersionSymbols [
# CHECK: Name: _Z3bari
# CHECK: Name: _Z3fooi@@FOO
# CHECK: Name: _Z3zedi@@BAR
Modified: lld/trunk/test/ELF/version-script-extern.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/version-script-extern.s?rev=375096&r1=375095&r2=375096&view=diff
==============================================================================
--- lld/trunk/test/ELF/version-script-extern.s (original)
+++ lld/trunk/test/ELF/version-script-extern.s Thu Oct 17 03:23:59 2019
@@ -66,7 +66,7 @@
# DSO-NEXT: Section: .text (0x6)
# DSO-NEXT: }
# DSO-NEXT: ]
-# DSO-NEXT: Version symbols [
+# DSO-NEXT: VersionSymbols [
# DSO-NEXT: Symbol {
# DSO-NEXT: Version: 0
# DSO-NEXT: Name:
Modified: lld/trunk/test/ELF/version-script-extern2.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/version-script-extern2.s?rev=375096&r1=375095&r2=375096&view=diff
==============================================================================
--- lld/trunk/test/ELF/version-script-extern2.s (original)
+++ lld/trunk/test/ELF/version-script-extern2.s Thu Oct 17 03:23:59 2019
@@ -5,7 +5,7 @@
# RUN: ld.lld --version-script %t.script -shared %t.o -o %t.so
# RUN: llvm-readobj -V %t.so | FileCheck %s
-# CHECK: Version symbols [
+# CHECK: VersionSymbols [
# CHECK-NEXT: Symbol {
# CHECK-NEXT: Version: 0
# CHECK-NEXT: Name:
Modified: lld/trunk/test/ELF/version-script-locals-extern.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/version-script-locals-extern.s?rev=375096&r1=375095&r2=375096&view=diff
==============================================================================
--- lld/trunk/test/ELF/version-script-locals-extern.s (original)
+++ lld/trunk/test/ELF/version-script-locals-extern.s Thu Oct 17 03:23:59 2019
@@ -4,7 +4,7 @@
# RUN: echo "FOO { local: extern \"C++\" { \"abb(int)\"; }; };" > %t.script
# RUN: ld.lld --version-script %t.script -shared %t.o -o %t.so
# RUN: llvm-readobj -V %t.so | FileCheck %s --check-prefix=ABB
-# ABB: Version symbols [
+# ABB: VersionSymbols [
# ABB-NEXT: Symbol {
# ABB-NEXT: Version: 0
# ABB-NEXT: Name:
@@ -23,7 +23,7 @@
# RUN: echo "FOO { local: extern \"C++\" { abc*; }; };" > %t.script
# RUN: ld.lld --version-script %t.script -shared %t.o -o %t.so
# RUN: llvm-readobj -V %t.so | FileCheck %s --check-prefix=ABC
-# ABC: Version symbols [
+# ABC: VersionSymbols [
# ABC-NEXT: Symbol {
# ABC-NEXT: Version: 0
# ABC-NEXT: Name:
Modified: lld/trunk/test/ELF/version-script-symver2.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/version-script-symver2.s?rev=375096&r1=375095&r2=375096&view=diff
==============================================================================
--- lld/trunk/test/ELF/version-script-symver2.s (original)
+++ lld/trunk/test/ELF/version-script-symver2.s Thu Oct 17 03:23:59 2019
@@ -4,7 +4,7 @@
# RUN: ld.lld -shared %t.o --version-script %t.map -o %t.so --fatal-warnings
# RUN: llvm-readobj -V %t.so | FileCheck %s
-# CHECK: Version symbols [
+# CHECK: VersionSymbols [
# CHECK-NEXT: Symbol {
# CHECK-NEXT: Version: 0
# CHECK-NEXT: Name:
More information about the llvm-commits
mailing list