[PATCH] D51456: [LLD] [COFF] When doing automatic dll imports, replace whole .refptr.<var> chunks with __imp_<var>
Martin Storsjö via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 31 00:47:00 PDT 2018
mstorsjo added inline comments.
================
Comment at: COFF/SymbolTable.cpp:182
+ if (Refptr && Refptr->getChunk()->getSize() == PtrSize) {
+ log("Replacing .refptr." + Name + " with " + Imp->getName());
+ Refptr->getChunk()->Live = false;
----------------
I added another extra sanity check that the Refptr chunk only contains 1 relocation and that it points at this specific symbol that we're importing, before I committed this.
Repository:
rL LLVM
https://reviews.llvm.org/D51456
More information about the llvm-commits
mailing list