I am trying to add security flags to an executable but it seem that when compiling with -pie
(as linker flags), the file
tool sees it as a shared library, although I can run it without problems.
Is this normal? Can this be fixed?
I am using add_link_options(-pie)
(so all CMake executables can benefit)
untitled3: ELF 64-bit LSB shared object, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /lib64/l, for GNU/Linux 3.2.0, BuildID[sha1]=f33e240db8bf52c2566b2cad14b4be67fdb6b35a, with debug_info, not stripped
LE: it seems it was a bug in file
tool, fixed here: