forked from OSchip/llvm-project
[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:
parent
13d05787d0
commit
e912fffd3a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue