Mike’s Place


Here are the pages tagged 'c':

Creating Statically Linked ELF Executables

This writeup was inspired by a conversation on Mastodon. The Problem It is really easy to do something silly with an ELF file, such as accidentally create a dynamically-linked one as opposed to a statically-linked one. This is incredibly easy to do because in nine out of ten situations, you want to create an ELF program that uses shared libraries. Also, perhaps counter-intuitively, when linking a PIE binary, it is an ELF shared object with an entrypoint, not an ELF executable.

Read the full post…