[Issue 1675] "Identifier too long" error with OMF object files
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Nov 15 21:52:46 PST 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1675
------- Comment #2 from jarrett.billingsley at gmail.com 2007-11-15 23:52 -------
(In reply to comment #1)
> 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.
>
I suppose as a stopgap measure that'd work fine, and might even be controlled
by a compiler switch, so that in the general case debugger info wouldn't be
affected. And what's more -- the only time these issues come up is with
templates, which a lot of debuggers have serious problems with anyway, so..
--
More information about the Digitalmars-d-bugs
mailing list