Oh, just noticed that lastmname is also used to generate the object file name and mname is also used later on, so ignore my last comment. 
As mentioned in the comment later, symbol names can get very long, maybe too long for the library file formats.  Maybe we should just use something like "orphaned" with the sequence number.