[lld] r358078 - [llvm-readobj] Should declare `ListScope` for `verneed` entries.
Xing GUO via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 10 05:47:21 PDT 2019
Author: higuoxing
Date: Wed Apr 10 05:47:21 2019
New Revision: 358078
URL: http://llvm.org/viewvc/llvm-project?rev=358078&view=rev
Log:
[llvm-readobj] Should declare `ListScope` for `verneed` entries.
Summary: YAML mappings require keys to be unique. See: https://yaml.org/spec/1.2/spec.html#id2764652
Reviewers: jhenderson, grimar, rupprecht, espindola, ruiu
Reviewed By: ruiu
Subscribers: ruiu, emaste, arichardson, MaskRay, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D60438
Modified:
lld/trunk/test/ELF/verdef-defaultver.s
lld/trunk/test/ELF/verneed.s
Modified: lld/trunk/test/ELF/verdef-defaultver.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/verdef-defaultver.s?rev=358078&r1=358077&r2=358078&view=diff
==============================================================================
--- lld/trunk/test/ELF/verdef-defaultver.s (original)
+++ lld/trunk/test/ELF/verdef-defaultver.s Wed Apr 10 05:47:21 2019
@@ -179,18 +179,20 @@
# EXE-NEXT: Version: 1
# EXE-NEXT: Count: 2
# EXE-NEXT: FileName: shared
-# EXE-NEXT: Entry {
-# EXE-NEXT: Hash: 1425
-# EXE-NEXT: Flags: 0x0
-# EXE-NEXT: Index: 2
-# EXE-NEXT: Name: V1
-# EXE-NEXT: }
-# EXE-NEXT: Entry {
-# EXE-NEXT: Hash: 1426
-# EXE-NEXT: Flags: 0x0
-# EXE-NEXT: Index: 3
-# EXE-NEXT: Name: V2
-# EXE-NEXT: }
+# EXE-NEXT: Entries [
+# EXE-NEXT: Entry {
+# EXE-NEXT: Hash: 1425
+# EXE-NEXT: Flags: 0x0
+# EXE-NEXT: Index: 2
+# EXE-NEXT: Name: V1
+# EXE-NEXT: }
+# EXE-NEXT: Entry {
+# EXE-NEXT: Hash: 1426
+# EXE-NEXT: Flags: 0x0
+# EXE-NEXT: Index: 3
+# EXE-NEXT: Name: V2
+# EXE-NEXT: }
+# EXE-NEXT: ]
# EXE-NEXT: }
# EXE-NEXT: }
Modified: lld/trunk/test/ELF/verneed.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/verneed.s?rev=358078&r1=358077&r2=358078&view=diff
==============================================================================
--- lld/trunk/test/ELF/verneed.s (original)
+++ lld/trunk/test/ELF/verneed.s Wed Apr 10 05:47:21 2019
@@ -148,29 +148,33 @@
# CHECK-NEXT: Version: 1
# CHECK-NEXT: Count: 2
# CHECK-NEXT: FileName: verneed1.so.0
-# CHECK-NEXT: Entry {
-# CHECK-NEXT: Hash: 1938
-# CHECK-NEXT: Flags: 0x0
-# CHECK-NEXT: Index: 3
-# CHECK-NEXT: Name: v2
-# CHECK-NEXT: }
-# CHECK-NEXT: Entry {
-# CHECK-NEXT: Hash: 1939
-# CHECK-NEXT: Flags: 0x0
-# CHECK-NEXT: Index: 2
-# CHECK-NEXT: Name: v3
-# CHECK-NEXT: }
+# CHECK-NEXT: Entries [
+# CHECK-NEXT: Entry {
+# CHECK-NEXT: Hash: 1938
+# CHECK-NEXT: Flags: 0x0
+# CHECK-NEXT: Index: 3
+# CHECK-NEXT: Name: v2
+# CHECK-NEXT: }
+# CHECK-NEXT: Entry {
+# CHECK-NEXT: Hash: 1939
+# CHECK-NEXT: Flags: 0x0
+# CHECK-NEXT: Index: 2
+# CHECK-NEXT: Name: v3
+# CHECK-NEXT: }
+# CHECK-NEXT: ]
# CHECK-NEXT: }
# CHECK-NEXT: Dependency {
# CHECK-NEXT: Version: 1
# CHECK-NEXT: Count: 1
# CHECK-NEXT: FileName: verneed2.so.0
-# CHECK-NEXT: Entry {
-# CHECK-NEXT: Hash: 1937
-# CHECK-NEXT: Flags: 0x0
-# CHECK-NEXT: Index: 4
-# CHECK-NEXT: Name: v1
-# CHECK-NEXT: }
+# CHECK-NEXT: Entries [
+# CHECK-NEXT: Entry {
+# CHECK-NEXT: Hash: 1937
+# CHECK-NEXT: Flags: 0x0
+# CHECK-NEXT: Index: 4
+# CHECK-NEXT: Name: v1
+# CHECK-NEXT: }
+# CHECK-NEXT: ]
# CHECK-NEXT: }
# CHECK-NEXT: }
More information about the llvm-commits
mailing list