llvm-project
750de326 - [COFF] Rename the COFFShortExport::AliasTarget field. NFC. (#89039)

Commit
1 year ago
[COFF] Rename the COFFShortExport::AliasTarget field. NFC. (#89039) It turns out that the previous name is vaguely misleading. When operating on a def file like "symbolname == dllname", that is supposed to make an import library entry, that when the symbol "symbolname" links against this, it imports the DLL symbol "dllname" from the referenced DLL. This doesn't need to involve any alias, and it doesn't need to imply that "dllname" is available on its own as a separate symbol in the import library at all. GNU dlltool implements import libraries in the form of "long import library", where each member is a regular object file with section chunks that compose the relevant .idata section pieces. There, this kind of import renaming does not involve any form of aliases, but the right .idata section just gets a different string than the symbol name.
Author
Parents
Loading