diff options
author | mengqinggang <mengqinggang@loongson.cn> | 2023-07-15 17:56:07 +0800 |
---|---|---|
committer | liuzhensong <liuzhensong@loongson.cn> | 2023-07-24 11:22:42 +0800 |
commit | a38b0c05b6e9444d94e8a4dd090584a8dcc313ad (patch) | |
tree | a55071c4ec79c0a628bcb6cb16ef9354e373e96a /gdbsupport/gdb-hashtab.h | |
parent | 378535f277b31e28f74cc65df6876c616beb04b4 (diff) | |
download | gdb-a38b0c05b6e9444d94e8a4dd090584a8dcc313ad.zip gdb-a38b0c05b6e9444d94e8a4dd090584a8dcc313ad.tar.gz gdb-a38b0c05b6e9444d94e8a4dd090584a8dcc313ad.tar.bz2 |
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.
Diffstat (limited to 'gdbsupport/gdb-hashtab.h')
0 files changed, 0 insertions, 0 deletions