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.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lit/SymbolFile/DWARF/Inputs/debug-line-basic.script | ||
---|---|---|
6 ↗ | (On Diff #213531) | 0 (output section address, addrExpr in lld) can be deleted. For non-SHF_ALLOC sections (.shstrtab .debug_info etc), the address expression is just ignored. // lld/ELF/LinkerScript.cpp#L772 if ((sec->flags & SHF_ALLOC) && sec->addrExpr) setDot(sec->addrExpr, sec->location, false); (I guess it was retrieved from ld --verbose) |