[Issue 1675] "Identifier too long" error with OMF object files

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Nov 15 20:31:26 PST 2007


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





------- Comment #1 from shro8822 at vandals.uidaho.edu  2007-11-15 22:31 -------
Oplink isn't the issue. The OMF file format has a hard limit. This results in
the only solutions being: convert DMD to use some other .obj format or have DMD
do something else for name mangling.

In talking to Walter, the issue is that it's easy to get symbols that have more
info in them than can be fit into the limit. (the limit has already stretched
by gziping the symbols.)

The "simple solution" I have proposed is to just MD5 (or what not) the symbols.
The only issue (besides a vanishingly small chance of a hash collision) is that
this looses information so you can't look at a symbol and directly determine
what it was. My answer to that is, who cares? The only place where hashing
provides less info than compressing is in a debugger and it can grab the full
symbol from a table in the static data segment.


-- 



More information about the Digitalmars-d-bugs mailing list