Merge changes I865fb1a2,I6b10b606,Id2e3295d,Id547c963,I66e8ecd5

* changes:
  def-tool: Hoist loop invariant
  def-tool: Add path filter for deps output
  def-tool: Scan ELF files in zip files
  def-tool: Add app-specific search path
  def-tool: Replace buf.size() with len(buf).