Roundtripping Loses .data Sections


PEReader does not persist data sections, as used by CSC for array initialization.
Closed Mar 4, 2010 at 2:38 AM by k_john_gough
This issue resolved in release 1.1.4


k_john_gough wrote Feb 23, 2010 at 10:43 AM

Constants were already correctly handled at the writing end of PERWAPI. It was the reading that failed to copy the data from the image file.

Data sections as produced for array initialization in CSC are now correctly persisted during roundtripping. However, CSC puts the data in the .text section, while PERWAPI writes constants accessed by FieldRVA tables in .data where the CLI spec implies they should be. Works the same.

This fix is in revision 42794 in the code repository. However, the same fix needs to be applied to embedded resources before a new release is created. Later.

wrote Mar 4, 2010 at 2:38 AM

wrote Feb 13, 2013 at 1:06 AM

wrote May 15, 2013 at 2:59 AM