[PATCH] D58843: [WIP][MC][RISCV] Allow targets to defer forcing relocations

Lewis Revill via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 29 07:47:03 PDT 2019


lewis-revill added a comment.

Should the following case be considered for RISC-V? It's impossible to solve with this patch:

  # pcrel_hi/pcrel_lo pair crossing a fragment boundary.
  
  .Lpcrel_label0:
  auipc  a0, %pcrel_hi(bar)
  
  .p2align  2   # Cause a new fragment be emitted here
  
  addi  a1, a0, %pcrel_lo(.Lpcrel_label0)
  
  bar:
    # ...

I'm aware of the current clarification in the spec about crossing a //section// boundary, but this is less to do with specification and more about where LLVM decides to create fragments.


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D58843/new/

https://reviews.llvm.org/D58843





More information about the llvm-commits mailing list