VnutZ Domain
Copyright © 1996 - 2018 [Matthew Vea] - All Rights Reserved

2010-03-24
Featured Article

Tiny ELF Executables

[index] [1,576 page views]

For the masochist programmers out there, I came across two articles on creating tiny executable programs. The first was a short study in how to generate an executable without the libc library which added an unnecessary amount of bloat to the ever classic “Hello World” program. Jessica, the author, goes through a series of steps showing where libc roots itself into the binary and how to use assembly language helpers to create some basic constructs and labels in order for compilation to succeed. It’s an interesting evolutionary read that takes the binary from 11K to just over 1K. Another tutorial leaves C behind almost completely and explores the absolute minimum structural requirements of the ELF format. Although it’s largely useless information to any normal programmer, it is handy to understand executable file specs if you’re a system programmer or interested in exploiting things at the system level.



More site content that might interest you:

Looking back to 1992, my experience with the Internet has spanned a lot of technical changes.


Try your hand at fate and use the site's continuously updating statistical analysis of the MegaMillions and PowerBall lotteries to choose "smarter" number. Remember, you don't have to win the jackpot to win money from the lottery!


Tired of social media sites mining all your data? Try a private, auto-deleting message bulletin board.