projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22b8da0
)
Correct R_MIPS_16 n32 howto
author
Alan Modra
<amodra@gmail.com>
Sat, 11 Jun 2022 02:16:31 +0000
(11:46 +0930)
committer
Alan Modra
<amodra@gmail.com>
Tue, 14 Jun 2022 00:26:49 +0000
(09:56 +0930)
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.
bfd/elfn32-mips.c
patch
|
blob
|
history
diff --git
a/bfd/elfn32-mips.c
b/bfd/elfn32-mips.c
index b74d25f12f7de00418b8f47e112304abd6465a2e..2027230c65112406349e246fd39407311fe5c983 100644
(file)
--- 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 */
+ 0x0000
ffff,
/* dst_mask */
false), /* pcrel_offset */
/* 32 bit relocation. */