Hi everybody,
I noticed that, when a builtin dll (.so) is loaded, the SizeOfImage field in the OptionalHeader is not updated and stays equal to page_size (see winebuild, spec32).
I need to get the correct value in SizeOfImage.
I thought about updating that field in map_dll@library/loader.c, but don't know how to get the size of the image.
Could anyone help me ? I'm not familiar with the PE loader.
Thanks in advance,
Laurent Pinchart