[ELF] Avoid creating a 2.1GB output file in arm-exidx-range.s
authorAlex Richardson <Alexander.Richardson@cl.cam.ac.uk>
Mon, 10 Aug 2020 17:07:40 +0000 (18:07 +0100)
committerAlex Richardson <Alexander.Richardson@cl.cam.ac.uk>
Mon, 10 Aug 2020 17:08:07 +0000 (18:08 +0100)
commite912fffd3a8c6c9f6e09d2eac4c1ee3a32800a22
tree900e60435fcd539455c6662e6d7eb93c4f93b089
parent13d05787d0d2dfdfd81939c2e5c41b6a913f5619
[ELF] Avoid creating a 2.1GB output file in arm-exidx-range.s

Currently both sections will be placed in the same PT_LOAD and therefore
lld generates a contiguous output file containing both sections.
By using AT(0xffff0000) the .vectors is placed a separate PT_LOAD and the
resulting file is now only a few kilobytes.

Reviewed By: psmith

Differential Revision: https://reviews.llvm.org/D85661
lld/test/ELF/arm-exidx-range.s