[binutils-gdb] S12Z: Set the source mask value of all howtos to zero.

John Darrington jmd@sourceware.org
Sun Sep 16 16:06:00 GMT 2018


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=808325d203f629208ed1988c8a90321c470ebcff

commit 808325d203f629208ed1988c8a90321c470ebcff
Author: John Darrington <john@darrington.wattle.id.au>
Date:   Tue Sep 4 20:24:44 2018 +0200

    S12Z: Set the source mask value of all howtos to zero.
    
    Thanks to Alan Modra for this hint.
    
    * bfd/elf32-s12z.c (elf_s12z_howto_table): set all src_mask members to zero.

Diff:
---
 bfd/elf32-s12z.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/bfd/elf32-s12z.c b/bfd/elf32-s12z.c
index cab54c4..8bad42e 100644
--- a/bfd/elf32-s12z.c
+++ b/bfd/elf32-s12z.c
@@ -119,7 +119,7 @@ static reloc_howto_type elf_s12z_howto_table[] =
 	 shift_addend_reloc,
 	 "R_S12Z_OPR",	/* name */
 	 FALSE,			/* partial_inplace */
-	 0x00ffffff,            /* src_mask */
+	 0x00000000,            /* src_mask */
 	 0x00ffffff,		/* dst_mask */
 	 FALSE),		/* pcrel_offset */
 
@@ -164,7 +164,7 @@ static reloc_howto_type elf_s12z_howto_table[] =
 	 bfd_elf_generic_reloc,	/* special_function */
 	 "R_S12Z_EXT24",	/* name */
 	 FALSE,			/* partial_inplace */
-	 0x00ffffff,            /* src_mask */
+	 0x00000000,            /* src_mask */
 	 0x00ffffff,		/* dst_mask */
 	 FALSE),		/* pcrel_offset */
 
@@ -179,7 +179,7 @@ static reloc_howto_type elf_s12z_howto_table[] =
 	 opru18_reloc,	        /* special_function */
 	 "R_S12Z_EXT18",	/* name */
 	 FALSE,			/* partial_inplace */
-	 0x0005ffff,            /* src_mask */
+	 0x00000000,            /* src_mask */
 	 0x0005ffff,		/* dst_mask */
 	 FALSE),		/* pcrel_offset */
 
@@ -194,7 +194,7 @@ static reloc_howto_type elf_s12z_howto_table[] =
 	 bfd_elf_generic_reloc,	/* special_function */
 	 "R_S12Z_EXT32",	/* name */
 	 FALSE,			/* partial_inplace */
-	 0xffffffff,            /* src_mask */
+	 0x00000000,            /* src_mask */
 	 0xffffffff,		/* dst_mask */
 	 FALSE),		/* pcrel_offset */
 };



More information about the Binutils-cvs mailing list