title: How to tell the linking type of an elf file?
body: <p>I'm doing a script that checking the elf file, and in some point it need to check the linking type for it.<br>
  So,<br>
  Is there any tools in Linux or stable way that I can use to check if an output file is totally static linked or dynamic linked?</p>
  
  <p>'ld.so --verify' can check if the file is dynamic linked, but it also check if is it handable by this linker, so I can not use the result as the determing for link type.</p>
  
  <p>Other tools like 'nm','file' do check the output file and provide some information about linking type by print message, which make it not very reliable to use..e.g. if I write script to grep words 'dynamically linked' 'statically linked' of standard output from 'file $filename' as a verify of the link type doesn't feel reliable..</p>
  
  <p>so, Is there any simple way or small tools to check the link type? or why it is not possible?</p>