This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: How to understand the p_align in Elf Program Header Table
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Jason <kaffe at bj1860 dot net>
- Cc: binutils at sources dot redhat dot com
- Date: Wed, 15 Sep 2004 17:28:25 +0930
- Subject: Re: How to understand the p_align in Elf Program Header Table
- References: <4147F16C.3060604@bj1860.net>
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
--
Alan Modra
IBM OzLabs - Linux Technology Centre