Re: [PATCH] DWARF: Emit DWARF5 forms for indirect addresses and string offsets.

2018-05-16 Thread Jason Merrill
OK. On Mon, May 14, 2018 at 9:42 AM, Mark Wielaard wrote: > On Mon, 2018-04-30 at 14:35 +0200, Mark Wielaard wrote: >> We already emit DWARF5 attributes and tables for indirect addresses >> and string offsets, but still use GNU forms. Add a new helper function >> dwarf_FORM () for emitting the ri

Re: [PATCH] DWARF: Emit DWARF5 forms for indirect addresses and string offsets.

2018-05-14 Thread Mark Wielaard
On Mon, 2018-04-30 at 14:35 +0200, Mark Wielaard wrote: > We already emit DWARF5 attributes and tables for indirect addresses > and string offsets, but still use GNU forms. Add a new helper function > dwarf_FORM () for emitting the right form. > > Currently we only use the uleb128 forms. But DWARF

[PATCH] DWARF: Emit DWARF5 forms for indirect addresses and string offsets.

2018-04-30 Thread Mark Wielaard
We already emit DWARF5 attributes and tables for indirect addresses and string offsets, but still use GNU forms. Add a new helper function dwarf_FORM () for emitting the right form. Currently we only use the uleb128 forms. But DWARF5 also allows 1, 2, 3 and 4 byte forms (DW_FORM_strx[1234] and DW_