Skip to content

RISC-V: Don't generate branch/jump relocation if symbol is local when no-relax.

Refer to commit, dff565fc. Theoretically, assembler don't need to generate the pc-relative relocation and the refered local .L symbol when relaxation is disabled. The above commit improved the pcrel_hi/pcrel_lo relocations, and this commit improves branch and jump relocations.

Passed the gcc/binutils regressions of riscv-gnu-toolchain.

gas/ * config/tc-riscv.c (md_apply_fix): Raise fixP->fx_done for all branch and jump relocations when -mno-relax.

合并请求报告

加载中