The recent patchelf upgrades corrupted the file permissions patch we
carry as upstream inserted an early exit to the funciton.
This showed up as corrupted file modes when testing a new uninative tarball
containing this patchelf.
Rework and tweak the patch to fix this.
(From OE-Core rev: bcdba091d99f9a3ae67c0ba17fcf27329698a0c0)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>