How to understand the p_align in Elf Program Header Table

Andreas Schwab schwab@suse.de
Wed Sep 15 09:30:00 GMT 2004


Alan Modra <amodra@bigpond.net.au> writes:

> On Wed, Sep 15, 2004 at 03:38:20PM +0800, Jason wrote:
>> integral power of 2, and p_vaddr should equal p_offset, modulo p_align.
>> 
>> it's mean: p_offset = p_vaddr mod p_align.
>
> No, it means p_offset mod p_align = p_vaddr mod p_align

Or if you prefer the mathematical notation:

  p_offset ≡ p_vaddr (mod p_align)

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



More information about the Binutils mailing list