This is some less important work, however by constifying needlessly writable data we gain:
- better debuggability since Wine will segfault in case of wild memory writes to that data
- less resource-hungry applications during runtime (several 4kB pages less per object file, it results in better separation of const and non-const data)
- better pageability, since read-only memory pages can simply be discarded instead of swapped out (they'll be reloaded from executable if needed again)
This work can be done by using objdump -x on some wine DLLs or programs and checking which .data variables can be made const (.rodata).
Please make sure to actually run the object file again, since an invalid const change might cause a segfault.
And especially make sure to (properly) fix any const compile warnings that occur during your work!!
