[llvm] [X86] Resolve FIXME: WinCOFFObjectWriter::RecordRelocation can emit PC-relative calls (PR #83877)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 7 00:55:25 PST 2024


MaskRay wrote:

> This has been true for a while now, but this check has not been removed.

This is not correct. `llc -mtriple=i386-pc-win32 -relocation-model=static call-imm.ll -o a.o -filetype=obj` has an assertion failure. It might be easier to reject this case like 64-bit.

https://github.com/llvm/llvm-project/pull/83877


More information about the llvm-commits mailing list