]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
MIPS/BFD: Use helper function for LO relocation sign-extension
authorMaciej W. Rozycki <macro@orcam.me.uk>
Sat, 12 Jul 2025 00:25:53 +0000 (01:25 +0100)
committerMaciej W. Rozycki <macro@orcam.me.uk>
Sat, 12 Jul 2025 00:25:53 +0000 (01:25 +0100)
commit509dbc2bf167f9afb42d8b20200b529acc0d1ee9
tree488284de7d9cb20d4cb37b718411c21a8e3b70cd
parent31b86e2ff93fb0de25ea1107625de415b8c7b649
MIPS/BFD: Use helper function for LO relocation sign-extension

A calculation for LO relocations has been recently fixed with commit
ce08b3bb19b3 ("MIPS/BFD: Fix RELA handling of borrow in the generic
linker"), however it was missed that for the updated arithmetic we
already have a helper function available, `_bfd_mips_elf_sign_extend'.

Replace the open-coded statement then with an equivalent call to said
function.  No functional change.
bfd/elfxx-mips.c