When running llvm-objcopy --add-section .sect=<file> --set-section-flags .sect=data <input> <output> for a PE/COFF binary, the section flags are ignored, so VirtualSize and VirtualAddress in the section header are always set to 0.
Created attachment 25081 [details] Proposed fix
Created differential: https://reviews.llvm.org/D106942