[PATCH] RISC-V: Don't generate branch/jump relocation if symbol is local when no-relax.
Andreas Schwab
schwab@suse.de
Tue Jan 30 10:00:58 GMT 2024
On Jan 29 2024, Nelson Chu wrote:
> Refer to commit, dff565fcca8137954d6ad571ef39f6aec5c0429c. 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.
Is this related to PR30591?
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
More information about the Binutils
mailing list