Why duplicate symbols in 1.0.1 and not 1.0 ???

Michael R Cook mcook@cognex.com
Fri Jan 16 17:12:00 GMT 1998


mrs@wrs.com (Mike Stump) writes:

> On the otherhand, Joe Buck has a symbol shortener that is on the
> right path.

One method would be to replace each name by its checksum.
For example, in Perl:

 s/\w+/length($&) <= 20 ? $& : "_" . unpack "%32C*", $&/eg

So, a name like `purple__15Yellow__tm__2_iFv_Z1Z' becomes
`_2959'.

Demangling is a little trickier, though...

Michael.



More information about the Gcc-bugs mailing list