Re: page size change on MIPS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxx> 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
>

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux