From: Alan Modra Date: Wed, 10 Oct 2018 01:47:54 +0000 (+1030) Subject: S12Z: Set eh_addr_size to 4 X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;h=8ab159a96565be6e60f8d88ba3a4638116f7e9d3;p=deliverable%2Fbinutils-gdb.git S12Z: Set eh_addr_size to 4 * objdump.c (dump_dwarf): Set s12z eh_addr_size to 4. --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 6737c6794c..09436ccedc 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,7 @@ +2018-10-10 Alan Modra + + * objdump.c (dump_dwarf): Set s12z eh_addr_size to 4. + 2018-10-08 Andreas Schwab * readelf.c (is_32bit_pcrel_reloc): Handle R_RISCV_32_PCREL. diff --git a/binutils/objdump.c b/binutils/objdump.c index f468fcdb59..4368fc0666 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; }