Go back to fronty page View most popular entries View latest additions Submit tutorials to UnixTutorials.info
UnixTutorials logo
Linux Creating Really Teensy ELF Executables for Linux
Post date: April 12, 2005, 18:04 Category: Views: 887 Comments: 0
Tutorial quote: If you're a programmer who's become fed up with software bloat, then may you find herein the perfect antidote.

This document explores methods for squeezing excess bytes out of simple programs. (Of course, the more practical purpose of this document is to describe a few of the inner workings of the ELF file format and the Linux operating system. But hopefully you can also learn something about how to make really teensy ELF executables in the process.)

Please note that the information and examples given here are, for the most part, specific to ELF executables on a Linux platform running under an Intel-386 architecture. I imagine that a good bit of the information is applicable to other ELF-based Unices, but my experiences with such are too limited for me to say with certainty.

The assembly code that appears in this document is written for use with Nasm. (Besides being more appropriate for our needs, Nasm's syntax beats the hell out of AT&T syntax for anyone who learned x86 assembly language before learning to use Gas.) Nasm is freely available and extremely portable; see http://nasm.sourceforge.net/.

Please also note that if you aren't a little bit familiar with assembly code, you may find parts of this document sort of hard to follow.

Comments

Currently there are 0 comment(s) for this tutorial. You can post a comment using the form below.


Your name/nick: Remember this?
Comment:

Allowed HTML tags:

<b>text</b>
<i>text</i>
<u>text</u>
Please solve math question below:

SEY         6AX      
  W    F    L     NC7
  6   BFW   548      
  B    H      6   W9D
  A         GBQ      
Website Python Coding Tutorial Solution For Every Bookie Gambling Player.