On 7/13/24 11:33, Vsevolod Alekseyev via Dwarf-discuss wrote:
“This header is followed by a series of tuples. Each tuple consists of
an address and a length, each in the size appropriate for an address on
the target architecture. The first tuple following the header in each
set begins at an offset that is a multiple of the size of a single tuple
(that is, twice the size of an address). The header is padded, if
necessary, to the appropriate boundary. Each set of tuples is terminated
by a 0 for the address and 0 for the length.”

Note the third sentence:

“The first tuple following the header in each set begins at an offset
that is a multiple of the size of a single tuple (that is, twice the
size of an address).”

Meanwhile in DWARFv4, section 6.1.2, which describes the same, the
corresponding fragment goes:



In dwarf2, dwarf3, and dwarf4 and dwarf5 every Section 7 description
has that requirement.  Section 7 is (usually) the 'formal'
data layout description.

The section 6 descriptions match too, and do not mention that
offset alignment requirement.

David Anderson
--
The way a government treats refugees is very instructive
because it shows you how they would treat the rest of us
if they thought they could get away with it.
-- Tony Benn, British MP 1950-2001

--
Dwarf-discuss mailing list
Dwarf-discuss@lists.dwarfstd.org
https://lists.dwarfstd.org/mailman/listinfo/dwarf-discuss

Reply via email to