diff options
author | Nelson Chu <nelson@rivosinc.com> | 2024-01-29 21:17:41 +0800 |
---|---|---|
committer | Nelson Chu <nelson@rivosinc.com> | 2024-02-21 14:58:05 +0800 |
commit | af514e5f6d1d0233a251a3ae17f7cb8d9ba8e36b (patch) | |
tree | a49b3a1ac3ddbe8bec23ff77cace19676f687110 /gdb/python/lib | |
parent | 67db6ada6370f24d344e91c2add203735292534c (diff) | |
download | binutils-af514e5f6d1d0233a251a3ae17f7cb8d9ba8e36b.zip binutils-af514e5f6d1d0233a251a3ae17f7cb8d9ba8e36b.tar.gz binutils-af514e5f6d1d0233a251a3ae17f7cb8d9ba8e36b.tar.bz2 |
RISC-V: Don't generate branch/jump relocation if symbol is local when no-relax.
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.
Diffstat (limited to 'gdb/python/lib')
0 files changed, 0 insertions, 0 deletions