llvm-project/lldb/lit/SymbolFile/DWARF/Inputs/debug-line-basic.script
Pavel Labath b53203ec1f A more robust way of testing debug_line parser near the end of module
Summary:
While removing -z separate-code makes lld produce place the code at the
end of a segment right now, it's possible that future changes to the
linker will change that, thereby removing the coverage for the changes
in r367983. This patch adds a linker script to one of the line table
tests, which ensures that the code (and its line table) will be placed
at the very end of a module.

Reviewers: MaskRay

Subscribers: lldb-commits

Differential Revision: https://reviews.llvm.org/D65789

llvm-svn: 368154
2019-08-07 11:33:56 +00:00

15 lines
311 B
Plaintext

PHDRS {
text PT_LOAD;
}
SECTIONS {
.shstrtab : { *(.shstrtab ) }
.debug_info : { *(.debug_info ) }
.debug_line : { *(.debug_line ) }
.debug_str : { *(.debug_str ) }
.debug_abbrev : { *(.debug_abbrev) }
. = 0x201000;
.text : { *(.text .text.f) } :text
/DISCARD/ : { *(*) }
}