[PATCH] D85661: [ELF] Avoid creating a 2.1GB output file in arm-exidx-range.s

Peter Smith via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 10 10:00:51 PDT 2020


psmith accepted this revision.
psmith added a comment.
This revision is now accepted and ready to land.

Thanks for spotting that. I'd personally prefer to fix in the linker script, rather than make the code RW but I don't have a strong preference.

In a magical world where there is spare time, it would be great to make the LLD program header generation more like BFD which I believe will generate separate program headers when the distance between OutputSections is large. Not for this patch though.



================
Comment at: lld/test/ELF/arm-exidx-range.s:6
 // RUN:         .text : { *(.text) } \
 // RUN:         .vectors 0xffff0000 : { *(.vectors) } \
 // RUN: } " > %t.script
----------------
This can be also be fixed by replacing this line:
.vectors 0xffff0000 : AT(0xffff0000) : { *(.vectors) } \


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D85661/new/

https://reviews.llvm.org/D85661



More information about the llvm-commits mailing list