[Dwarf-discuss] Aranges address entry alignment?

Vsevolod Alekseyev sevaa@yarxi.ru
Sat Jul 13 22:09:13 GMT 2024


Good point, found it, thanks.

-----Original Message-----
From: Dwarf-discuss <dwarf-discuss-bounces~sevaa=yarxi.ru@lists.dwarfstd.org> On Behalf Of David Anderson via Dwarf-discuss
Sent: Saturday, July 13, 2024 6:02 PM
To: dwarf-discuss@lists.dwarfstd.org
Subject: Re: [Dwarf-discuss] Aranges address entry alignment?

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



More information about the Dwarf-discuss mailing list