linux-mips
[Top] [All Lists]

Re: page size change on MIPS

To: naveen yadav <yad.naveen@gmail.com>
Subject: Re: page size change on MIPS
From: David Daney <ddaney@caviumnetworks.com>
Date: Fri, 04 Feb 2011 09:25:10 -0800
Cc: Ralf Baechle <ralf@linux-mips.org>, Himanshu Aggarwal <lkml.himanshu@gmail.com>, kernelnewbies@nl.linux.org, linux-mips@linux-mips.org
In-reply-to: <AANLkTimCfioamQWGeRCFFN=OoWE7-PhGs2tCH+_9H=HO@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> <20110131130820.GB26217@linux-mips.org> <AANLkTi=UTRk8e6fv3USP5RPKY-Fg0ehGBXrf0bD8NthX@mail.gmail.com> <AANLkTimCfioamQWGeRCFFN=OoWE7-PhGs2tCH+_9H=HO@mail.gmail.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.15) Gecko/20101027 Fedora/3.0.10-1.fc12 Thunderbird/3.0.10
On 02/03/2011 08:16 PM, naveen yadav wrote:
Hi, I am adding readelf info also .

mips-linux-gnu-readelf -S squashfs-root/bin/busybox
There are 35 section headers, starting at offset 0x174290:


Section headers are not relevant to any of this. You need to look at the program headers. Try 'readelf -l'

David Daney


[...]


On Mon, Jan 31, 2011 at 6:38 PM, Ralf Baechle<ralf@linux-mips.org>  wrote:
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>