The previous Name and ExtName aren't enough to convey all the nuances between weak aliases and stdcall decorated function names.
A test for this will be added in LLD.
Differential D36544
[COFF] Add SymbolName as a distinct field in COFFImportFile mstorsjo on Aug 9 2017, 12:48 PM. Authored by
Details The previous Name and ExtName aren't enough to convey all the nuances between weak aliases and stdcall decorated function names. A test for this will be added in LLD.
Diff Detail
Event Timeline
Comment Actions Instead of this patch, we could also update getNameType to check for decoration, e.g like this: if (!Sym.startswith("?") && Sym.find('@', 1) != Sym.npos) return IMPORT_NAME_UNDECORATE; This patch tries to get things back to match how things were in lld prior to factorizing it, while the snippet above takes it into a different direction. I'd appreciate if @ruiu could chime in on which direction is better to take here. |