ELF file types
An ELF file may be marked as one of the following types:
ET_NONE
: This is an unknown type. It indicates that the file type is unknown, or has not yet been defined.ET_REL
: This is a relocatable file. ELF type relocatable means that the file is marked as a relocatable piece of code or sometimes called an object file. Relocatable object files are generally pieces of Position independent code (PIC) that have not yet been linked into an executable. You will often see.o
files in a compiled code base. These are the files that hold code and data suitable for creating an executable file.ET_EXEC
: This is an executable file. ELF type executable means that the file is marked as an executable file. These types of files are also called programs and are the entry point of how a process begins running.ET_DYN
: This is a shared object. ELF type dynamic means that the file is marked as a dynamically linkable object file, also known as shared libraries. These shared libraries are loaded and...