dwarf.exp: In 64-bit units, emit also abbrev offset as a 64-bit field
Commit Message
Petr Machata <pmachata@redhat.com> writes:
>> I'll commit the patch for you if you are happy with the updated changelog.
>
> I am.
OK, patch below is what I pushed in.
@@ -1,3 +1,8 @@
+2014-11-17 Petr Machata <pmachata@redhat.com>
+
+ * lib/dwarf.exp (Dwarf::cu, Dwarf::tu): Emit
+ ${_cu_offset_size} bytes abbrev offset.
+
2014-11-15 Doug Evans <xdje42@gmail.com>
PR symtab/17559
@@ -954,7 +954,7 @@ namespace eval Dwarf {
}
define_label $start_label
_op .2byte $_cu_version Version
- _op .4byte $my_abbrevs Abbrevs
+ _op .${_cu_offset_size}byte $my_abbrevs Abbrevs
_op .byte $_cu_addr_size "Pointer size"
_defer_output $_abbrev_section {
@@ -1047,7 +1047,7 @@ namespace eval Dwarf {
}
define_label $start_label
_op .2byte $_cu_version Version
- _op .4byte $my_abbrevs Abbrevs
+ _op .${_cu_offset_size}byte $my_abbrevs Abbrevs
_op .byte $_cu_addr_size "Pointer size"
_op .8byte $signature Signature
if { $type_label != "" } {