diff options
author | Jacek Caban <jacek@codeweavers.com> | 2024-10-23 13:10:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-23 13:10:07 +0200 |
commit | 98bc5295ec2b996965f74e0490340d56c51ec147 (patch) | |
tree | b26e0b03e62aa8acc9c1634731b4797807f73c1b /llvm/lib/CodeGen/CodeGen.cpp | |
parent | 7ab6d39a4d58416c960847458df8d0babea07615 (diff) | |
download | llvm-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