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
15 lines
311 B
Plaintext
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/ : { *(*) }
|
|
}
|