S12Z: Set eh_addr_size to 4
authorAlan Modra <amodra@gmail.com>
Wed, 10 Oct 2018 01:47:54 +0000 (12:17 +1030)
committerAlan Modra <amodra@gmail.com>
Wed, 10 Oct 2018 03:02:18 +0000 (13:32 +1030)
* objdump.c (dump_dwarf): Set s12z eh_addr_size to 4.

binutils/ChangeLog
binutils/objdump.c

index 6737c6794c56ec6a280cc6ca384c758d1239f209..09436ccedcc618d5067189e43fb3b12290fdcb5e 100644 (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.
index f468fcdb59907a2ddb149b88f619e67f490f127d..4368fc06664d2de0bd803d7be3412435fa5352a0 100644 (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;
     }