[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
This commit is contained in:
Alex Richardson 2020-08-10 18:07:40 +01:00
parent 13d05787d0
commit e912fffd3a
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
// RUN: echo "SECTIONS { \
// RUN: . = 0x80000000; \
// RUN: .text : { *(.text) } \
// RUN: .vectors 0xffff0000 : { *(.vectors) } \
// RUN: .vectors 0xffff0000 : AT(0xffff0000) { *(.vectors) } \
// RUN: } " > %t.script
// RUN: ld.lld --script %t.script %t.o -o %t
// RUN: llvm-readobj -x .ARM.exidx %t | FileCheck %s