Re: [PATCH] readelf: Type DIE offset is from start of CU.

2021-02-17 Thread Mark Wielaard
On Fri, 2021-02-12 at 16:47 +0100, Mark Wielaard wrote: > While inspecting some type units I noticed the type offset seemed off. > We were printing the offset as is, but it should include the offset of > the unit. There was actually a testcase for this, run-readelf-types.sh > but that had the same

[PATCH] readelf: Type DIE offset is from start of CU.

2021-02-12 Thread Mark Wielaard
While inspecting some type units I noticed the type offset seemed off. We were printing the offset as is, but it should include the offset of the unit. There was actually a testcase for this, run-readelf-types.sh but that had the same bug in the expected output. Fixed both. Signed-off-by: Mark Wie