[test] Add -z separate-code to fix tests that ae sensitive to exact addresses after...
authorFangrui Song <maskray@google.com>
Mon, 16 Sep 2019 07:52:30 +0000 (07:52 +0000)
committerFangrui Song <maskray@google.com>
Mon, 16 Sep 2019 07:52:30 +0000 (07:52 +0000)
llvm-svn: 371962

lldb/lit/SymbolFile/DWARF/debug-types-address-ranges.s
lldb/lit/SymbolFile/DWARF/dir-separator-no-comp-dir-relative-name.s
lldb/lit/SymbolFile/DWARF/dir-separator-no-comp-dir.s
lldb/lit/SymbolFile/DWARF/dir-separator-posix.s
lldb/lit/SymbolFile/DWARF/dir-separator-windows.s
lldb/lit/SymbolFile/DWARF/find-inline-method.s

index b12d146..e87f8c8 100644 (file)
@@ -7,7 +7,7 @@
 # REQUIRES: lld, x86
 
 # RUN: llvm-mc -dwarf-version=5 -triple x86_64-pc-linux %s -filetype=obj >%t.o
-# RUN: ld.lld %t.o -o %t -image-base=0x47000
+# RUN: ld.lld %t.o -o %t -image-base=0x47000 -z separate-code
 # RUN: %lldb %t -o "image lookup -a 0x48000 -v" -o exit | FileCheck %s
 
 # CHECK:   CompileUnit: id = {0x00000001}, file = "/tmp/a.cc", language = "c++"
index 2a798f1..7fee15d 100644 (file)
@@ -5,7 +5,7 @@
 # REQUIRES: lld, x86
 
 # RUN: llvm-mc -triple x86_64-pc-linux %s -filetype=obj > %t.o
-# RUN: ld.lld %t.o -o %t
+# RUN: ld.lld %t.o -o %t -z separate-code
 # RUN: %lldb %t -s %S/Inputs/dir-separator-no-comp-dir-relative-name.lldbinit -o exit | FileCheck %s
 
 # CHECK-LABEL: image dump line-table a.c
index a1d0ea5..de6bde9 100644 (file)
@@ -4,7 +4,7 @@
 # REQUIRES: lld, x86
 
 # RUN: llvm-mc -triple x86_64-pc-linux %s -filetype=obj > %t.o
-# RUN: ld.lld %t.o -o %t
+# RUN: ld.lld %t.o -o %t -z separate-code
 # RUN: %lldb %t -s %S/Inputs/dir-separator-windows.lldbinit -o exit | FileCheck %s
 
 # CHECK-LABEL: image dump line-table a.c
index 14d1100..d646670 100644 (file)
@@ -4,7 +4,7 @@
 # REQUIRES: lld, x86
 
 # RUN: llvm-mc -triple x86_64-pc-linux %s -filetype=obj > %t.o
-# RUN: ld.lld %t.o -o %t
+# RUN: ld.lld %t.o -o %t -z separate-code
 # RUN: %lldb %t -s %S/Inputs/dir-separator-posix.lldbinit -o exit | FileCheck %s
 
 # CHECK-LABEL: image dump line-table a.c
index 1ba03cc..d640335 100644 (file)
@@ -4,7 +4,7 @@
 # REQUIRES: lld, x86
 
 # RUN: llvm-mc -triple x86_64-pc-linux %s -filetype=obj > %t.o
-# RUN: ld.lld %t.o -o %t
+# RUN: ld.lld %t.o -o %t -z separate-code
 # RUN: %lldb %t -s %S/Inputs/dir-separator-windows.lldbinit -o exit | FileCheck %s
 
 # CHECK-LABEL: image dump line-table a.c
index c88c9a2..cfc5ef0 100644 (file)
@@ -1,7 +1,7 @@
 # REQUIRES: lld, x86
 
 # RUN: llvm-mc -triple x86_64-pc-linux %s -filetype=obj > %t.o
-# RUN: ld.lld %t.o -o %t
+# RUN: ld.lld %t.o -o %t -z separate-code
 # RUN: lldb-test symbols --find=function --name=inl --function-flags=method %t \
 # RUN:   | FileCheck %s