Bug 1380 – dmd generate wrong end record, and linker doesn't check this checksum

Status
RESOLVED
Resolution
INVALID
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2007-07-27T02:37:00Z
Last change time
2015-06-09T05:15:18Z
Assigned to
bugzilla
Creator
davidl

Comments

Comment #0 by davidl — 2007-07-27T02:37:08Z
the end record of OMF obj file generated by DMD is: 8a 0200 0000 while the checksum is wrong, it should be 0x74, and the linker doesn't check this
Comment #1 by bugzilla — 2007-09-04T03:43:36Z
The checksum value emitted is 0, which is a valid value meaning "ignore the checksum", which is why the linker ignores it. The checksum serves no useful modern purpose, as obj files are not on easily corrupted media anymore like paper tape or crummy analog phone lines. Also, generating and checking the checksum slows down compilation speed. So, it isn't done, by design. It isn't broken.