commit | a38b0c05b6e9444d94e8a4dd090584a8dcc313ad | [log] [tgz] |
---|---|---|
author | mengqinggang <mengqinggang@loongson.cn> | Sat Jul 15 17:56:07 2023 +0800 |
committer | liuzhensong <liuzhensong@loongson.cn> | Mon Jul 24 11:22:42 2023 +0800 |
tree | a55071c4ec79c0a628bcb6cb16ef9354e373e96a | |
parent | 378535f277b31e28f74cc65df6876c616beb04b4 [diff] |
LoongArch: Fix immediate overflow check bug For B16/B21/B26/PCREL20_S2 relocations, if immediate overflow check after rightshift, and the mask need to include sign bit. Now, the immediate overflow check before rightshift for easier understand. bfd/ChangeLog: * elfxx-loongarch.c (reloc_bits_pcrel20_s2): Delete. (reloc_bits_b16): Delete. (reloc_bits_b21): Delete. (reloc_bits_b26): Delete. (reloc_sign_bits): New.