[all-commits] [llvm/llvm-project] 50d33c: [LLD] [COFF] Fix crashes for cfguard with undefine...
Martin Storsjö via All-commits
all-commits at lists.llvm.org
Tue Jan 23 10:37:14 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 50d33c62ad8786400a712b01150f6decaf070782
https://github.com/llvm/llvm-project/commit/50d33c62ad8786400a712b01150f6decaf070782
Author: Martin Storsjö <martin at martin.st>
Date: 2024-01-23 (Tue, 23 Jan 2024)
Changed paths:
M lld/COFF/Writer.cpp
A lld/test/COFF/cfguard-weak-undef.s
Log Message:
-----------
[LLD] [COFF] Fix crashes for cfguard with undefined weak symbols (#79063)
When marking symbols as having their address taken, we can have the
sitaution where we have the address taken of a weak symbol. If there's
no strong definition of the symbol, the symbol ends up as an absolute
symbol with the value null. In those cases, we don't have any Chunk.
Skip such symbols from the cfguard tables.
This fixes https://github.com/llvm/llvm-project/issues/78619.
More information about the All-commits
mailing list