summaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2018-10-10 12:17:54 +1030
committerAlan Modra <amodra@gmail.com>2018-10-10 13:32:18 +1030
commit8ab159a96565be6e60f8d88ba3a4638116f7e9d3 (patch)
tree4f414a5edf217aca63d4da45f325c58c3910a555 /binutils
parentdaff3a48c17625ade8b57cf770fc77b4c1815df2 (diff)
downloadbinutils-gdb-8ab159a96565be6e60f8d88ba3a4638116f7e9d3.tar.gz
S12Z: Set eh_addr_size to 4
* objdump.c (dump_dwarf): Set s12z eh_addr_size to 4.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog4
-rw-r--r--binutils/objdump.c6
2 files changed, 10 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 6737c6794c5..09436ccedcc 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 f468fcdb599..4368fc06664 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;
}