aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/CodeGen.cpp
diff options
context:
space:
mode:
authorJacek Caban <jacek@codeweavers.com>2024-10-23 13:10:07 +0200
committerGitHub <noreply@github.com>2024-10-23 13:10:07 +0200
commit98bc5295ec2b996965f74e0490340d56c51ec147 (patch)
treeb26e0b03e62aa8acc9c1634731b4797807f73c1b /llvm/lib/CodeGen/CodeGen.cpp
parent7ab6d39a4d58416c960847458df8d0babea07615 (diff)
downloadllvm-98bc5295ec2b996965f74e0490340d56c51ec147.zip
llvm-98bc5295ec2b996965f74e0490340d56c51ec147.tar.gz
llvm-98bc5295ec2b996965f74e0490340d56c51ec147.tar.bz2
[LLD][COFF] Check both mangled and demangled symbols before adding a lazy archive symbol to the symbol table on ARM64EC (#113284)
On ARM64EC, a function symbol may appear in both mangled and demangled forms: - ARM64EC archives contain only the mangled name, while the demangled symbol is defined by the object file as an alias. - x86_64 archives contain only the demangled name (the mangled name is usually defined by an object referencing the symbol as an alias to a guess exit thunk). - ARM64EC import files contain both the mangled and demangled names for thunks. If more than one archive defines the same function, this could lead to different libraries being used for the same function depending on how they are referenced. Avoid this by checking if the paired symbol is already defined before adding a symbol to the table.
Diffstat (limited to 'llvm/lib/CodeGen/CodeGen.cpp')
0 files changed, 0 insertions, 0 deletions