aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2022-06-11 11:46:31 +0930
committerAlan Modra <amodra@gmail.com>2022-06-14 09:56:49 +0930
commit5f269b46201975658dc5f4218acc6d836fa12ab6 (patch)
treee1323add6bfbfd68a8922cbdc4258ce2deecb676
parent22b8da0ae7a9fa524b639623c66df63bd0beaf7c (diff)
downloadfsf-binutils-gdb-5f269b46201975658dc5f4218acc6d836fa12ab6.zip
fsf-binutils-gdb-5f269b46201975658dc5f4218acc6d836fa12ab6.tar.gz
fsf-binutils-gdb-5f269b46201975658dc5f4218acc6d836fa12ab6.tar.bz2
Correct R_MIPS_16 n32 howto
If the howto is actually used, an all-zero dst_mask will result in unchanged section contents on attempting to apply R_MIPS_16. * elfn32-mips.c (elf_mips_howto_table_rela <R_MIPS_16>): Correct dst_mask.
-rw-r--r--bfd/elfn32-mips.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elfn32-mips.c b/bfd/elfn32-mips.c
index b74d25f..2027230 100644
--- a/bfd/elfn32-mips.c
+++ b/bfd/elfn32-mips.c
@@ -901,7 +901,7 @@ static reloc_howto_type elf_mips_howto_table_rela[] =
"R_MIPS_16", /* name */
false, /* partial_inplace */
0, /* src_mask */
- 0x0000, /* dst_mask */
+ 0x0000ffff, /* dst_mask */
false), /* pcrel_offset */
/* 32 bit relocation. */