]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
LoongArch: Fix immediate overflow check bug
authormengqinggang <mengqinggang@loongson.cn>
Mon, 24 Jul 2023 09:08:26 +0000 (10:08 +0100)
committerNick Clifton <nickc@redhat.com>
Mon, 24 Jul 2023 09:08:26 +0000 (10:08 +0100)
commit460d3c77f09a5da67e6d1d105725203aba5bf49c
tree5418ff4b1969045011074a8cf9204b3d194801b7
parent6069b75eeef92193d0b8faab9e8f2eb2183dfce6
LoongArch: Fix immediate overflow check bug

  * elfnn-loongarch.c (RELOCATE_CALC_PC32_HI20): Redefined.
  (RELOCATE_CALC_PC64_HI32): Redefined.
  * elfxx-loongarch.c (reloc_bits_pcrel20_s2): Delete.
  (reloc_bits_b16): Delete.
  (reloc_bits_b21): Delete.
  (reloc_bits_b26): Delete.
  (reloc_sign_bits): New.
bfd/ChangeLog
bfd/elfnn-loongarch.c
bfd/elfxx-loongarch.c