[binutils-gdb] S12Z: Set eh_addr_size to 4

Alan Modra amodra@sourceware.org
Wed Oct 10 03:05:00 GMT 2018


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

commit 8ab159a96565be6e60f8d88ba3a4638116f7e9d3
Author: Alan Modra <amodra@gmail.com>
Date:   Wed Oct 10 12:17:54 2018 +1030

    S12Z: Set eh_addr_size to 4
    
    	* objdump.c (dump_dwarf): Set s12z eh_addr_size to 4.

Diff:
---
 binutils/ChangeLog | 4 ++++
 binutils/objdump.c | 6 ++++++
 2 files changed, 10 insertions(+)

diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 6737c67..09436cc 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,7 @@
+2018-10-10  Alan Modra  <amodra@gmail.com>
+
+	* objdump.c (dump_dwarf): Set s12z eh_addr_size to 4.
+
 2018-10-08  Andreas Schwab  <schwab@suse.de>
 
 	* readelf.c (is_32bit_pcrel_reloc): Handle R_RISCV_32_PCREL.
diff --git a/binutils/objdump.c b/binutils/objdump.c
index f468fcd..4368fc0 100644
--- a/binutils/objdump.c
+++ b/binutils/objdump.c
@@ -2759,6 +2759,12 @@ dump_dwarf (bfd *abfd)
       init_dwarf_regnames_riscv ();
       break;
 
+    case bfd_arch_s12z:
+      /* S12Z has a 24 bit address space.  But the only known
+	 producer of dwarf_info encodes addresses into 32 bits.  */
+      eh_addr_size = 4;
+      break;
+
     default:
       break;
     }



More information about the Binutils-cvs mailing list