From: Fangrui Song Date: Thu, 28 May 2020 00:42:35 +0000 (-0700) Subject: [ELF][test] Fix wrap-no-real.s after D51283 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=1224e619d975c7ecf8017e0ef8210188f39deec4;p=android-x86%2Fexternal-llvm-project.git [ELF][test] Fix wrap-no-real.s after D51283 Give %t3.so a DT_SONAME so that the DT_NEEDED entry in a dependent executable has a fixed length. --- diff --git a/lld/test/ELF/wrap-no-real.s b/lld/test/ELF/wrap-no-real.s index 0ee95edd8e3..43d94cf91f8 100644 --- a/lld/test/ELF/wrap-no-real.s +++ b/lld/test/ELF/wrap-no-real.s @@ -2,7 +2,7 @@ // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t1.o // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/wrap-no-real.s -o %t2.o // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/wrap-no-real2.s -o %t3.o -// RUN: ld.lld -o %t3.so -shared %t3.o +// RUN: ld.lld -o %t3.so -shared --soname=t3 %t3.o // RUN: ld.lld -o %t %t1.o %t2.o -wrap foo // RUN: llvm-objdump -d %t | FileCheck %s @@ -23,9 +23,9 @@ // RUN: llvm-readelf -s -x .got %t2 | FileCheck --check-prefix=READELF --implicit-check-not=__real_ %s // CHECK2: <_start>: -// CHECK2-NEXT: movq {{.*}}(%rip), %rax # 2022f8 -// CHECK2-NEXT: movq {{.*}}(%rip), %rbx # 2022f8 -// CHECK2-NEXT: movq {{.*}}(%rip), %rcx # 202300 +// CHECK2-NEXT: movq {{.*}}(%rip), %rax # 2022b8 +// CHECK2-NEXT: movq {{.*}}(%rip), %rbx # 2022b8 +// CHECK2-NEXT: movq {{.*}}(%rip), %rcx # 2022c0 .global _start _start: