linux-mips
[Top] [All Lists]

Re: page size change on MIPS

To: Ralf Baechle <ralf@linux-mips.org>
Subject: Re: page size change on MIPS
From: naveen yadav <yad.naveen@gmail.com>
Date: Fri, 4 Feb 2011 08:54:41 +0530
Cc: Himanshu Aggarwal <lkml.himanshu@gmail.com>, David Daney <ddaney@caviumnetworks.com>, kernelnewbies@nl.linux.org, linux-mips@linux-mips.org
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=0ANHv8SJTJXJNAToirr7L5FRoJx+b9m/H+fREj0Xl3o=; b=aK3wQJo/tOTMiYe1q9j+BTMwLrhbrJvUCIUMjxwgRspegH547b7WcuH4Zxb1iEvqsq p+DEyBUy7dJNFI+M4DWxPXHEIq23jfJWcHRTOojWFM/4KQqyDAjKRpZF7zB/ZtAHR69Q Tv9d6qDUnFhlXY8JOwqVeIWNYXJi09JzckDFE=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=Lt17TyrU8MyYowcZezakovfORvKROmxPPV9JNGq41rpVVbuFvOcUDc2w5ecGH+k8Wp Po2lXqqGV3D1xHP8IOgq5WcUfXoOMoTKzscorsGrnCerENb0irgcFP0UCjzzZrDKizGi xD2i7WzU8EwJmUZYyxMJOJMFgC5R3fgFmhLHs=
In-reply-to: <20110131130820.GB26217@linux-mips.org>
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>
Sender: linux-mips-bounce@linux-mips.org
thanaks a lot for your suggestion ..


I debug this issue further, and here is my observations:

1. If I replace init with simple static link executable binary, this
can be executed.
2. In case of busy-box, I debug the reason why init fails to excute.

When I execute init command from busybox the control goes in main()
function of busybox(appletlib.c) with argv value
as the command you are suppose to execute, which in our case is init.

But when i check argv is coming null when page size is 64KB and it
comes init when page size is 16KB.

This behaviour is very strange and i am still debugging this issue.


I have check in Glibc, the max_page size it support is 64 KB in
codesourcercy toolchain 4.4.1

How can I check alignment issue as mention by Mr. Ralf Baechle.



Kind regards




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>