]> granicus.if.org Git - llvm/commit
[RISCV] Don't force absolute FK_Data_X fixups to relocs
authorAlex Bradbury <asb@lowrisc.org>
Mon, 19 Aug 2019 13:23:02 +0000 (13:23 +0000)
committerAlex Bradbury <asb@lowrisc.org>
Mon, 19 Aug 2019 13:23:02 +0000 (13:23 +0000)
commitc1e1ac2f6fdd7f5d08ef59182d931f929a442312
treec0a9c669734fbcd2ec3a7c37bc02e18a50c9faa0
parent502be66e5178073aaa16ae04388fa6984bded5f0
[RISCV] Don't force absolute FK_Data_X fixups to relocs

The current behavior of shouldForceRelocation forces relocations for the
majority of fixups when relaxation is enabled. This makes sense for
fixups which incorporate symbols but is unnecessary for simple data
fixups where the fixup target is already resolved to an absolute value.

Differential Revision: https://reviews.llvm.org/D63404
Patch by Edward Jones.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369257 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/RISCV/MCTargetDesc/RISCVAsmBackend.cpp
test/MC/RISCV/fde-reloc.s
test/MC/RISCV/linker-relaxation.s