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

Re: [MiNT] ELF



On Sun, 13 Mar 2016 19:35:40 , Peter Slegg <p.slegg@scubadivers.co.uk> wrote:
> On Sat, 12 Mar 2016 12:22:33 , Peter Slegg <p.slegg@scubadivers.co.uk> wrote:
>
>
> http://eli.thegreenplace.net/2012/08/13/how-statically-linked-programs-run-on-linux/
>
>
> http://git.denx.de/?p=u-boot.git;a=blob;f=common/cmd_efi.c;h=c76296e7259f6b8e5b40148e894a2f953ba0ffdb;hb=9dffa52da8f3fd23fe38ee184512b2a08678d933
>

http://www.pix.net/software/bsdos/elf_faq.html

There doesn't seem to be too many disadvantages to using elf and
I assume pre-elf apps would still work.

Apart from changing Mint to recognise and load an ELF binary
does anything else have to be changed ?

Regards,
 
Peter



Can you give me a quick summary of the advantages and disadvantages of all of the new options for ELF programs?

Dynamically linked ELF executable files:

*    are small
*    are more like executable files in other Unix-like systems
*    make it easier to upgrade libraries
*    run a bit slower than statically linked executable files


Statically linked ELF executable files that use shared libraries:

*    are tiny (smallest of the three options)
*    run very fast
*    are awkward to maintain when shared libraries change
*    are unique to BSD/OS and are not compatible with other systems


Statically linked ELF executable files that don't use shared libraries:

*    run fast (fastest of the three options, but not by much)

*    are compatible with other systems, but most ELF systems provide dynamically linked executable files
*    must be completely re-linked and replaced when you upgrade or change a library that they use
*    are enormous in size and memory usage (often several times the size of programs that use shared libraries)