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

Re: [MiNT] ELF



Sorry for talking to myself.

I don't know anything about kernel code but I was curious
enough to have a look for the existing loader. I think I found
it:

http://sparemint.org/cgi-bin/cvsweb/freemint/sys/k_exec.c?rev=1.50&content-type=text/x-cvsweb-markup


Things like this jump out at me ;-)

 /* FIXME: This is completely wrong!!! */
 if (DIRSEP(source[0])) /* absolute path? */
 {
  strncpy(&tmp[2], &source[0], PATH_MAX-2);
  strcpy(p->fname, tmp);
 }
 else


>Linux statically linked programs:
> http://eli.thegreenplace.net/2012/08/13/how-statically-linked-programs-run-on-linux/
>
>u-boot:
> http://git.denx.de/?p=u-boot.git;a=blob;f=common/cmd_efi.c;h=c76296e7259f6b8e5b40148e894a2f953ba0ffdb;hb=9dffa52da8f3fd23fe38ee184512b2a08678d933
>
>ELF FAQ:
> http://www.pix.net/software/bsdos/elf_faq.html
 



Peter