[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: assembler [was: Re: cheers for gogo]
On Tue, 14 Mar 2000, Dr A V Le Blanc wrote:
> By the way, has anyone seen ELFkickers? It produces the following
> tiny binaries:
>
> -rwx--x--x 1 128 Mar 14 09:54 cat
> -rwx--x--x 1 1000 Mar 14 09:54 factor
> -rwx--x--x 1 59 Mar 14 09:54 hello
> -rwx--x--x 1 192 Mar 14 09:54 hexdump
> -rwx--x--x 1 45 Mar 14 09:54 true
>
> These are in fact written in assembler and assembled using nasm.
> The best I can do with a 'normal' assembler program for
> hello world is 448 bytes...
ELF is notorious for having large gaping holes in it which you can stuff
with code. There are a number of pointers to fields in there, and you can
munge some of the fields such that they contain subsets of each other,
thus you can overlap them and do all sorts of crazy things.
Cheers,
Alex.
---------------------------------------------------------------------
Sheffield Linux User's Group - http://www.sheflug.co.uk
To unsubscribe from this list send mail to
- <sheflug-request [at] vuw.ac.nz> - with the word
"unsubscribe" in the body of the message.
GNU the choice of a complete generation.