linux-mips
[Top] [All Lists]

Re: page size change on MIPS

To: Himanshu Aggarwal <lkml.himanshu@gmail.com>
Subject: Re: page size change on MIPS
From: Ralf Baechle <ralf@linux-mips.org>
Date: Mon, 31 Jan 2011 14:08:20 +0100
Cc: David Daney <ddaney@caviumnetworks.com>, naveen yadav <yad.naveen@gmail.com>, kernelnewbies@nl.linux.org, linux-mips@linux-mips.org
In-reply-to: <AANLkTin6GkKeJATbafP-k9YNcSTHeT8ohDpUD2RLDZ1J@mail.gmail.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <AANLkTik+vpiWR4Xk4Pu+uCHq3XO=BZMGVka8-B9vuQew@mail.gmail.com> <4D3DCB5A.6060107@caviumnetworks.com> <AANLkTin6GkKeJATbafP-k9YNcSTHeT8ohDpUD2RLDZ1J@mail.gmail.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.21 (2010-09-15)
On Sun, Jan 30, 2011 at 08:32:43PM +0530, Himanshu Aggarwal wrote:

> Why should the application or the toolchains depend on pagesize? I am
> not very clear on this. Can someone explain it?

To allow loading directly with mmap the executable file's layout must
be such that it's it's segments are on offsets that are a multiple of
the page size so in turn the linker must know that alignment.

  Ralf

<Prev in Thread] Current Thread [Next in Thread>