Tinlink
This is tinlink, a tool to create very small elf binary from pure
binary files (as produced by "nasm -f bin") (look
there for nasm).
The main purpose of this program is to create 4Kb intros under Linux,
where we want, well, a 4Kb executable size ! So, the smaller the
header, the bigger the code size !
If you know a way to get a header smaller than 74 bytes, I am intersted
in it (maybe with a.out format ?). (I found it ! Go to the links section
and follow the second one ! 45 bytes for an executable ! It's crazy !)
Features :
-
any binary file of any size can become an elf (with a very small
elf header of 74 bytes length),
-
you can get any memory reserved for the program you produce (by setting
a field in the elf header with the help of tinlink),
-
You can have auto-modifying code (because the Linux elf-loader will
map the area with read/write/executable rights). For example,
you can do a runtime decompressor like pklite under DoS (with
this feature, and /dev/fb and /dev/dsp, we can make 4Kb and 64Kb under
Linux that will look very nice, don't you think so ?).
-
the program is Y2K compliant !
-
yes, I know, put a "features" section looks like all those shitty
commercial site (who said Microsoft ?), but you know, a little fun does
not hurt :)
Warning :
-
The file generated by the program may very well not run at all if
the Linux elf-loader does not what I expect it to do (if it does
not as in Linux 2.2.1, where I tested it; it works too under Linux
2.0.33).
Download :
Todo :
-
add the possibility to link several .o (in elf format for example),
because one binary file can be hard to produce and requires to code
in pure assembler and use nasm, which might be a pain to some C coder,
nope ?
Links :
Dos packers : apack 624 wwpack lzexe pklite
Contact : sed@free.fr
Last update : Sat Oct 9 17:02:17 MET DST 1999
Powered by vi.