needed_libraries: Fix cannot find section .dynamic
needed_libraries: Fix cannot find section .dynamic

Fix the error `cannot find section .dynamic` when needed_libraries is
called on a static ELF executable.

mahori/brew,EricFromCanada/brew,vitorgalvao/brew,Linuxbrew/brew,Homebrew/brew,Linuxbrew/brew,claui/brew,claui/brew,mahori/brew,MikeMcQuaid/brew,nandub/brew,nandub/brew,konqui/brew,Linuxbrew/brew,JCount/brew,reitermarkus/brew,MikeMcQuaid/brew,mahori/brew,vitorgalvao/brew,reitermarkus/brew,JCount/brew,nandub/brew,mahori/brew,konqui/brew,nandub/brew,sjackman/homebrew,vitorgalvao/brew,JCount/brew,claui/brew,sjackman/homebrew,sjackman/homebrew,MikeMcQuaid/brew,sjackman/homebrew,Homebrew/brew,konqui/brew,Homebrew/brew,EricFromCanada/brew,JCount/brew,EricFromCanada/brew,konqui/brew,reitermarkus/brew,vitorgalvao/brew,Homebrew/brew,reitermarkus/brew,EricFromCanada/brew,claui/brew,Linuxbrew/brew,MikeMcQuaid/brew