[lld] 1224e61 - [ELF][test] Fix wrap-no-real.s after D51283

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Wed May 27 17:43:41 PDT 2020


Author: Fangrui Song
Date: 2020-05-27T17:43:33-07:00
New Revision: 1224e619d975c7ecf8017e0ef8210188f39deec4

URL: https://github.com/llvm/llvm-project/commit/1224e619d975c7ecf8017e0ef8210188f39deec4
DIFF: https://github.com/llvm/llvm-project/commit/1224e619d975c7ecf8017e0ef8210188f39deec4.diff

LOG: [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.

Added: 
    

Modified: 
    lld/test/ELF/wrap-no-real.s

Removed: 
    


################################################################################
diff  --git a/lld/test/ELF/wrap-no-real.s b/lld/test/ELF/wrap-no-real.s
index 0ee95edd8e30..43d94cf91f8a 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:


        


More information about the llvm-commits mailing list