[all-commits] [llvm/llvm-project] c964af: [AArch64] Diagnose large adrp offset on Windows.

Eli Friedman via All-commits all-commits at lists.llvm.org
Tue Nov 2 15:11:48 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c964afb2c8b540a8579c18d3a05379ceee704844
      https://github.com/llvm/llvm-project/commit/c964afb2c8b540a8579c18d3a05379ceee704844
  Author: Eli Friedman <efriedma at quicinc.com>
  Date:   2021-11-02 (Tue, 02 Nov 2021)

  Changed paths:
    M llvm/lib/Target/AArch64/MCTargetDesc/AArch64AsmBackend.cpp
    M llvm/test/MC/AArch64/fixup-out-of-range.s

  Log Message:
  -----------
  [AArch64] Diagnose large adrp offset on Windows.

On Windows, this relocation can only encode a 21-bit offset. Make sure
we emit an error, instead of silently truncating the offset.

Found investigating https://bugs.llvm.org/show_bug.cgi?id=52378

Differential Revision: https://reviews.llvm.org/D113051




More information about the All-commits mailing list