[llvm] [windows][x86][asm] fix nullptr deref in WinCOFFWriter::recordRelocation (PR #181459)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Sun Feb 15 15:31:06 PST 2026
MaskRay wrote:
Thanks for the bug report but the PR is incorrect.
gas reports an error for this case but our X86AsmParser doesn't.
```
.intel_syntax
jz [0x6]
// gas
int.s:2: Error: operand type mismatch for `jz'
```
The COFF object file writer is less sophisticated than ELF. While I don't know whether COFF theoretically supports relocations that do not reference a symbol, the assert assumes that codegen/parser should not create such fixups.
https://github.com/llvm/llvm-project/pull/181459
More information about the llvm-commits
mailing list