[PATCH] D66717: [ELF] Do not ICF two sections with different output sections (by SECTIONS commands)

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 26 03:36:10 PDT 2019


MaskRay marked an inline comment as done.
MaskRay added inline comments.


================
Comment at: ELF/Writer.cpp:155
 
-static void copySectionsIntoPartitions() {
+void elf::copySectionsIntoPartitions() {
   std::vector<InputSectionBase *> newSections;
----------------
ruiu wrote:
> Maybe this and `createSynethticSections` should be moved to a new file if they are no longer a part of the writer?
Do you have a recommendation what the new file should be called? While this is under review, I am experimenting other reordering this change will enable (e.g. moving addOrphanSections from Writer.cpp to between processSectionCommands/ICF). The definition of "Writer" is indeed unclear to me now...


Repository:
  rLLD LLVM Linker

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

https://reviews.llvm.org/D66717





More information about the llvm-commits mailing list