GNU windres, and MS cvtres (unless the /readonly option is passed) produce read-write .rsrc sections, when creating resource object files. This causes the sections to not be added to the precreated RsrcSec, and therefore not be added to the data directory.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
COFF/Writer.cpp | ||
---|---|---|
687 ↗ | (On Diff #206725) | Stylistically, would it make more sense to move the .idata perms fixup out from this function, next to the fixup for .rsrc below? |
COFF/Writer.cpp | ||
---|---|---|
656 ↗ | (On Diff #206725) | Sure, adding one that says "Change the characteristics of existing PartialSections that belong to the section Name to Chars." |
657 ↗ | (On Diff #206725) | The type here is std::map<PartialSectionKey, PartialSection *>::iterator, so I think this is one of the cases where auto is warranted. |
Comment Actions
Added the comment Rui requested. I also renamed the obj file from .obj to .o, as it is created with windres, not cvtres.
Comment Actions
This fixes the issues mentioned at the bottom of https://reviews.llvm.org/D63109#1558181 , right?