D-Programming-Language/dmd — comment on commit e8c3ac7c43f8ac9f142fd0ed6676f70f1b5ad7f7
File: src/glue.c line 304
By donc:

Is the ELF/MACH case really supposed to be different to the Windows case? In code.h, there's
#define Doffset SegData[DATA]->SDoffset
#define Offset(seg) SegData[seg]->SDoffset
so Doffset and Offset(DATA) are the same. This means that nbytes is the same, regardless of OS.
The only difference is that SDoffset is updated only on Windows ??