]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
LoongArch: Fix a bug of getting relocation type
authormengqinggang <mengqinggang@loongson.cn>
Fri, 26 Jan 2024 03:16:49 +0000 (11:16 +0800)
committerliuzhensong <liuzhensong@loongson.cn>
Fri, 26 Jan 2024 08:49:53 +0000 (16:49 +0800)
commitcd35c9fd1e67b2dd8acbda3dfa398e395b22f220
treeb5a1e22724f0f94ad8d09961b356bd00c41de6d3
parent969f5c0e12c18595cbd16f2df73c4630d0635dfe
LoongArch: Fix a bug of getting relocation type

The old code works because R_LARCH_RELAX has no symbol index. It causes
'(rel + 1)->r_info == R_LARCH_RELAX' is 1 and ELFNN_R_TYPE (1) is 1.
bfd/elfnn-loongarch.c