]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ctf: handle structure and union offsets in form DW_FORM_data1
authorNick Alcock <nick.alcock@oracle.com>
Thu, 23 Jan 2014 23:21:24 +0000 (23:21 +0000)
committerNick Alcock <nick.alcock@oracle.com>
Tue, 21 Jul 2015 14:29:28 +0000 (15:29 +0100)
commite7ae809f46c8a7d6fd40898db98cd7671961337b
tree965f6f39a7a3eacd595610bdec1dc435a2b87c86
parent5a5cab5f6e10cb14234b1ba76a6ba9e0aa2ec27e
ctf: handle structure and union offsets in form DW_FORM_data1

GCC 4.8.0 and above have started to represent structure member offsets in the
DW_AT_data_member_location attribute using DWARF forms DW_FORM_data1 and _data2
where possible: indeed, this is the common case, as most structure members are
less than 64K into the structure: and every structure contains at least one
member whose offset is represented this way.

dwarf2ctf neglected to check for DW_FORM_data1, so the build failed when it hit
the first structure in the kernel and realised that it didn't understand its
offset.

Fix trivial.

Orabug: 18117464
Signed-off-by: Nick Alcock <nick.alcock@oracle.com>
Reviewed-by: Chuck Anderson <chuck.anderson@oracle.com>
scripts/dwarf2ctf/dwarf2ctf.c