S12Z: Set eh_addr_size to 4

* objdump.c (dump_dwarf): Set s12z eh_addr_size to 4.
This commit is contained in:
Alan Modra 2018-10-10 12:17:54 +10:30
parent daff3a48c1
commit 8ab159a965
2 changed files with 10 additions and 0 deletions

View file

@ -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.

View file

@ -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;
}