[all-commits] [llvm/llvm-project] 78084d: [ELF] Rewrite R_RISCV_ALIGN nops when r.addend%4 != 0
Fangrui Song via All-commits
all-commits at lists.llvm.org
Mon Sep 26 14:20:44 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 78084d9e77b9a2017e2215491b71b37c2671c292
https://github.com/llvm/llvm-project/commit/78084d9e77b9a2017e2215491b71b37c2671c292
Author: Fangrui Song <i at maskray.me>
Date: 2022-09-26 (Mon, 26 Sep 2022)
Changed paths:
M lld/ELF/Arch/RISCV.cpp
M lld/test/ELF/riscv-relax-align-rvc.s
Log Message:
-----------
[ELF] Rewrite R_RISCV_ALIGN nops when r.addend%4 != 0
For RVC, GNU assembler and LLVM integrated assembler add c.nop followed by a
sequence of 4-byte nops. Even if remove % 4 == 0, we have to split one 4-byte
nop and therefore need to write the code sequence, otherwise we create an
incorrect c.unimp.
More information about the All-commits
mailing list