[PATCH] D85661: [ELF] Avoid creating a 2.1GB output file in arm-exidx-range.s
Alexander Richardson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 10 09:47:19 PDT 2020
arichardson created this revision.
arichardson added reviewers: psmith, MaskRay.
Herald added subscribers: llvm-commits, danielkiss, kristof.beyls, emaste.
Herald added a reviewer: espindola.
Herald added a project: LLVM.
arichardson requested review of this revision.
Currently both sections will be placed in the same PT_LOAD and therefore
lld generates a contiguous output file containing both sections.
By marking the .vectors section as writable, it will be placed in a
separate PT_LOAD and the resulting file is now only a few kilobytes.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D85661
Files:
lld/test/ELF/arm-exidx-range.s
Index: lld/test/ELF/arm-exidx-range.s
===================================================================
--- lld/test/ELF/arm-exidx-range.s
+++ lld/test/ELF/arm-exidx-range.s
@@ -28,7 +28,7 @@
.cantunwind
.fnend
- .section .vectors, "ax", %progbits
+ .section .vectors, "awx", %progbits
.global vecs
.type vecs, %function
vecs:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85661.284412.patch
Type: text/x-patch
Size: 340 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200810/786817c0/attachment.bin>
More information about the llvm-commits
mailing list