diff options
author | James Henderson <jh7370@my.bristol.ac.uk> | 2019-01-22 09:35:47 +0000 |
---|---|---|
committer | James Henderson <jh7370@my.bristol.ac.uk> | 2019-01-22 09:35:47 +0000 |
commit | e3a5e2f228b45f46331d35b2706e2efdfcedd89a (patch) | |
tree | 466728941c39cdc64fd25c2f80c1f7851af16c19 | |
parent | e4443d35d929f53a03dcfb72283c53c5fe549d23 (diff) |
[LLD][ELF]Fix tests for D56910
r351789 changes the output of llvm-readelf --dyn-symbols. This causes 3
LLD tests to break. This patch fixes them.
Reviewed by: ruiu
Differential Revision: https://reviews.llvm.org/D56911
git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@351790 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/ELF/as-needed-weak.s | 7 | ||||
-rw-r--r-- | test/ELF/icf-symbol-type.s | 2 | ||||
-rw-r--r-- | test/ELF/linkerscript/provide-shared2.s | 2 |
3 files changed, 6 insertions, 5 deletions
diff --git a/test/ELF/as-needed-weak.s b/test/ELF/as-needed-weak.s index a47399a60..1c38fd2ab 100644 --- a/test/ELF/as-needed-weak.s +++ b/test/ELF/as-needed-weak.s @@ -10,9 +10,10 @@ # CHECK-NOT: libfoo -# CHECK: Symbol table of .hash for image: -# CHECK-NEXT: Num Buc: Value Size Type Bind Vis Ndx Name -# CHECK-NEXT: 1 1: 0000000000000000 0 FUNC WEAK DEFAULT UND foo +# CHECK: Symbol table '.dynsym' contains 2 entries: +# CHECK-NEXT: Num: Value Size Type Bind Vis Ndx Name +# CHECK-NEXT: 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND +# CHECK-NEXT: 1: 0000000000000000 0 FUNC WEAK DEFAULT UND foo .globl _start .weak foo diff --git a/test/ELF/icf-symbol-type.s b/test/ELF/icf-symbol-type.s index 9cc1c5096..350f20371 100644 --- a/test/ELF/icf-symbol-type.s +++ b/test/ELF/icf-symbol-type.s @@ -7,8 +7,8 @@ # We used to mark bar as absolute. # CHECK: .text PROGBITS 0000000000001000 -# CHECK: 0000000000001001 0 NOTYPE GLOBAL DEFAULT 4 foo # CHECK: 0000000000001001 0 NOTYPE GLOBAL DEFAULT 4 bar +# CHECK: 0000000000001001 0 NOTYPE GLOBAL DEFAULT 4 foo # The nop makes the test more interesting by making the offset of # text.f non zero. diff --git a/test/ELF/linkerscript/provide-shared2.s b/test/ELF/linkerscript/provide-shared2.s index 1a7b213d8..3c55d2fa6 100644 --- a/test/ELF/linkerscript/provide-shared2.s +++ b/test/ELF/linkerscript/provide-shared2.s @@ -6,7 +6,7 @@ # RUN: ld.lld -o %t --script %t.script %t.o %t2.so # RUN: llvm-readelf --dyn-symbols %t | FileCheck %s -# CHECK: 1 1: 000000000000002a 0 NOTYPE GLOBAL DEFAULT ABS foo +# CHECK: 1: 000000000000002a 0 NOTYPE GLOBAL DEFAULT ABS foo .global _start _start: |