[PATCH] D63837: [LLD] [COFF] Fix .rsrc sections with differing permissions
Martin Storsjö via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 26 23:42:31 PDT 2019
mstorsjo marked an inline comment as done.
mstorsjo added inline comments.
================
Comment at: COFF/Writer.cpp:687
// be sorted into the same sections as our own synthesized .idata chunks.
- for (auto It : PartialSections) {
- PartialSection *PSec = It.second;
- if (!PSec->Name.startswith(".idata"))
- continue;
- if (PSec->Characteristics == RDATA)
- continue;
- PartialSection *RDataSec = createPartialSection(PSec->Name, RDATA);
- RDataSec->Chunks.insert(RDataSec->Chunks.end(), PSec->Chunks.begin(),
- PSec->Chunks.end());
- PSec->Chunks.clear();
- }
+ fixPartialSectionChars(".idata", RDATA);
----------------
Stylistically, would it make more sense to move the .idata perms fixup out from this function, next to the fixup for .rsrc below?
Repository:
rLLD LLVM Linker
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D63837/new/
https://reviews.llvm.org/D63837
More information about the llvm-commits
mailing list