[cmake-developers] patch to fix PIE binary detection for newer file

Marcus Meissner meissner at suse.de
Mon Feb 23 04:51:42 EST 2015


Hi,

This patch detects PIE binaries with newer file (5.22), as
it no longer prints (uses shared libraries)

file 5.19

# file /usr/bin/su
/usr/bin/su: setuid ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 3.0.0, BuildID[sha1]=c22b7c2ca90323d07e30d742e97c08bb98313d8a, stripped

file 5.22
# file /usr/bin/su
/usr/bin/su: setuid ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.0.0, BuildID[sha1]=030ed4b9e0129d19842cd0e3cbebbc614417d748, stripped

Ciao, Marcus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cmake-fix-pie-binaries.patch
Type: text/x-patch
Size: 666 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20150223/6513c253/attachment.bin>


More information about the cmake-developers mailing list