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
Diff Detail
Event Timeline
COFF/Writer.cpp | ||
---|---|---|
689 | Stylistically, would it make more sense to move the .idata perms fixup out from this function, next to the fixup for .rsrc below? |
Added the comment Rui requested. I also renamed the obj file from .obj to .o, as it is created with windres, not cvtres.
This fixes the issues mentioned at the bottom of https://reviews.llvm.org/D63109#1558181 , right?
Can you add a function comment?