forked from OSchip/llvm-project
[lit] Use ld.lld -z separate-code to work around a debug_line parsing bug
The issue was exposed by D64903/r367537. http://lab.llvm.org:8011/builders/lldb-x64-windows-ninja/builds/7321/ In these tests, .debug_str immediately follows .text. The last section of last RX PT_LOAD was originally padded with trap instructions and .debug_str started at a new page (actually common-page-size). Now, .debug_str immediately follows .test. Add -z separate-code to use the old layout. llvm-svn: 367549
This commit is contained in:
parent
081e990d08
commit
caf03a41f3
|
@ -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 -z separate-code %t.o -o %t
|
||||
# RUN: %lldb %t -o "image dump line-table -v a.c" -o exit | FileCheck %s
|
||||
|
||||
|
||||
|
|
|
@ -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 -z separate-code %t.o -o %t
|
||||
# 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
|
||||
|
|
|
@ -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 -z separate-code %t.o -o %t
|
||||
# RUN: %lldb %t -s %S/Inputs/dir-separator-windows.lldbinit -o exit | FileCheck %s
|
||||
|
||||
# CHECK-LABEL: image dump line-table a.c
|
||||
|
|
|
@ -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 -z separate-code %t.o -o %t
|
||||
# RUN: %lldb %t -s %S/Inputs/dir-separator-posix.lldbinit -o exit | FileCheck %s
|
||||
|
||||
# CHECK-LABEL: image dump line-table a.c
|
||||
|
|
|
@ -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 -z separate-code %t.o -o %t
|
||||
# RUN: %lldb %t -s %S/Inputs/dir-separator-windows.lldbinit -o exit | FileCheck %s
|
||||
|
||||
# CHECK-LABEL: image dump line-table a.c
|
||||
|
|
Loading…
Reference in New Issue