[Issue 2932] bad e_ehsize (36 != 52)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jun 23 06:03:49 PDT 2009


http://d.puremagic.com/issues/show_bug.cgi?id=2932





--- Comment #2 from Leandro Lucarella <llucax at gmail.com>  2009-06-23 06:03:49 PDT ---
This seems to be a DMD error indeed. Here is what the Gold author said:

"""
The object file you attached does indeed have an e_ehsize field with a
value of 36.  The e_ehsize field is supposed to hold the size of the ELF file
header.  The ELF file header should be 52 bytes long.  36 bytes omits the last
7
fields--although the fields do appear to be actually present.  There is
something wrong with the compiler which is generating this object file.  My
best
guess is that the person who wrote the object file creation code did not
realize
that the 16 byte magic number field is included in the size of the file header.
I would be happy to help explain the problem the the authors of this code, if
necessary.
"""

(the object file he is talking about is an object file generated by DMD)

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list