This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to understand the p_align in Elf Program Header Table


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."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]