llvm-project
286ab11d - Reapply "[llvm][CFI] Do not canonicalize COFF functions in a comdat (#139962)"

Commit
173 days ago
Reapply "[llvm][CFI] Do not canonicalize COFF functions in a comdat (#139962)" This reapplies 33684ac9be4892579f63a8e2b67080419426cf98 with appropriate requires on tests. COFF requires that a function exists with the same name as a comdat. Not having this key function results in `LLVM ERROR: Associative COMDAT symbol '...' does not exist.` CFI by default will attempt to canonicalize a function by appending `.cfi` to its name which allows external references to refer to the new canonical alias, but it does not change the comdat name. We can change the comdat name since symbol and comdat resolution occurs before LTO, so we already know which symbols are prevailing.
Author
Committer
Parents
Loading