I\'m looking for a fast way to check if a ELF binary is a shared object or a position independent executable. I think a can do that by checking the contained symbols / funct
Try the elfutils and the included program eh-readelf:
eh-readelf --file-header $ELFFILE
showw you the file header and what kind of file it is:
... Typ: EXEC (Executable file) ...
or
Typ: DYN (Shared object file)
In combination with a little sed line you should get the results you want.
sed