[PATCH] D127581: WIP [ELF] Relax R_RISCV_ALIGN
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Jun 11 16:51:21 PDT 2022
MaskRay created this revision.
Herald added subscribers: sunshaoce, VincentWu, luke957, StephenFan, vkmr, frasercrmck, evandro, luismarques, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, shiva0217, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, asb, arichardson, emaste.
Herald added a project: All.
MaskRay requested review of this revision.
Herald added subscribers: llvm-commits, pcwang-thead, eopXD.
Herald added a project: LLVM.
Alternative to D125036 <https://reviews.llvm.org/D125036>. This patch implements R_RISCV_ALIGN relocations so that
we can deal with -mrelax object files (i.e. -mno-relax is no longer needed).
Call/load/store/etc instructions are not implemented.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D127581
Files:
lld/ELF/Arch/RISCV.cpp
lld/ELF/InputSection.cpp
lld/ELF/InputSection.h
lld/ELF/Relocations.cpp
lld/ELF/Relocations.h
lld/ELF/Target.h
lld/ELF/Writer.cpp
lld/test/ELF/riscv-relax-align-rvc.s
lld/test/ELF/riscv-relax-align.s
lld/test/ELF/riscv-reloc-align.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D127581.436170.patch
Type: text/x-patch
Size: 17238 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220611/6020821f/attachment.bin>
More information about the llvm-commits
mailing list