Re: [uClinux-dev] why no-mmu cannot support binfmt_aout.c

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

 



loody wrote:
> BTW, I also find that if I want uclinux kernel to support ELF binary
> file, I also have to enable the mmu option.
> But the format of cross-compiled binary file like busybox is only ELF,
> if there is option I can add to let  busybox and other binary files
> compiled in different format.

On uClinux with no MMU, you have to use FLT format (all architectures
support this I think) or FDPIC-ELF (just a few architectures support
this, the advantage is proper shared libraries and loadable modules).

To make FLT files, usually you add "-Wl,-elf2flt=-s32768" or something
like that to the GCC command line.  That option sets the stack size;
the size needed is different for each application.  Too small and the
app will crash or worse, corrupt memory.  Too large and it'll use a
lot of memory, and won't start at all after the system has developed
memory fragmentation.  Enjoy :-)

-- Jamie

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[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