[ELF][test] Delete large temporary files and make some temporary files smaller with...
authorFangrui Song <i@maskray.me>
Mon, 21 Sep 2020 19:08:41 +0000 (12:08 -0700)
committerFangrui Song <i@maskray.me>
Mon, 21 Sep 2020 19:09:17 +0000 (12:09 -0700)
commit6d637fa560f0196b93e377b98489661ecd7a1af0
treee81a2b173bed93ac7f0f76d0daef5e6330bc7fc8
parente8951474b1940bd81bc3bac8d506e08880ee35ea
[ELF][test] Delete large temporary files and make some temporary files smaller with two text segments

Large files are cumbersome on some filesystems and can more easily trigger ENOSPC.

Some tests use two text sections with output section addresses to test branch ranges.
Use two text segments to prevent LLD from filling the gap and unnecessarily increasing the output size.

With this change, there is no test/ELF temporary file larger than 100MiB.

Reviewed By: psmith

Differential Revision: https://reviews.llvm.org/D88037
lld/test/ELF/aarch64-cortex-a53-843419-large.s
lld/test/ELF/aarch64-cortex-a53-843419-large2.s
lld/test/ELF/aarch64-cortex-a53-843419-thunk-range.s
lld/test/ELF/aarch64-thunk-pi.s
lld/test/ELF/aarch64-thunk-script.s
lld/test/ELF/aarch64-thunk-section-location.s
lld/test/ELF/arm-thumb-plt-range-thunk-os.s