I changed malloc to calloc in exeload.c and
the problem was resolved. I didn't notice a
specific BSS section in the LX header so will
leave any refining of that to another day.
Whose responsibility is it to clear BSS?
I assume it is the operating system.
I am now able to open and read/write files,
but during testing (on PDOS/386) I found an
issue which I believe is due to uninitialized BSS.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 300 |
Nodes: | 16 (2 / 14) |
Uptime: | 04:15:44 |
Calls: | 6,706 |
Calls today: | 6 |
Files: | 12,236 |
Messages: | 5,350,356 |