Static Linking Under Solaris

Static linking is often required for security-related applications. For example, you may want to compile a statically-linked version of the "ls" program to go into your anonymous FTP directory. If you're doing computer forensics, you may want a toolkit of statically-linked executables that you can carry onto subverted systems (where you may not trust the shared libraries). Solaris has historically made it difficult to statically compile "interesting" binaries. Oh, you can statically compile the "Hello World" program with no problems, but trying to compile complex software like "ls" and other tools leads to errors. I've talked with folks at Sun as to why they did things this way and I can understand their reasons, I just don't agree with them. The purpose of this document, then, is to provide you with a simple hack to allow you to create working statically-linked binaries for your Solaris system.

http://tinyurl.com/6y577k

Comments

Popular Posts