Amends 1cb9f37a17ab restricting the logic to PPC64 as it introduces regression of FreeBSD/amd64 binaries compiled in freestanding mode (as kernel and modules) as discussed in https://reviews.llvm.org/D109090.
Bug report https://bugs.llvm.org/show_bug.cgi?id=51590