This is the mail archive of the binutils-cvs@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] RISC-V/bfd: Fix bitsize of R_RISCV_ADD8.


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

commit 0b14696aedc2b56291bc98d62fe232c8dceb1385
Author: Kuan-Lin Chen <kuanlinchentw@gmail.com>
Date:   Thu Nov 24 10:22:15 2016 +0800

    RISC-V/bfd: Fix bitsize of R_RISCV_ADD8.
    
    bfd/ChangeLog:
    	* bfd/elfxx-riscv.c (howto_table): Fix bitsize of R_RISCV_ADD8.

Diff:
---
 bfd/ChangeLog     | 4 ++++
 bfd/elfxx-riscv.c | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 346ff29..d7a5693 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,7 @@
+2016-11-24  Kuan-Lin Chen  <kuanlinchentw@gmail.com>
+
+	* bfd/elfxx-riscv.c (howto_table): Fix bitsize of R_RISCV_ADD8.
+
 2016-11-23  Nick Clifton  <nickc@redhat.com>
 
 	PR ld/20815
diff --git a/bfd/elfxx-riscv.c b/bfd/elfxx-riscv.c
index bd68fe4..c1f28f7 100644
--- a/bfd/elfxx-riscv.c
+++ b/bfd/elfxx-riscv.c
@@ -479,7 +479,7 @@ static reloc_howto_type howto_table[] =
   HOWTO (R_RISCV_ADD8,			/* type */
 	 0,				/* rightshift */
 	 0,				/* size */
-	 32,				/* bitsize */
+	 8,				/* bitsize */
 	 FALSE,				/* pc_relative */
 	 0,				/* bitpos */
 	 complain_overflow_dont,	/* complain_on_overflow */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]