Comment 12 for bug 1747711

Revision history for this message
WHR (msl0000023508) wrote :

>>> So for mime types to distinguish, "file" needs to grow reporting of the INTERP presence.

Distinguish between shared libraries and PIC executables based on INTERP ELF header is not always correct. Consider following 2 exceptions:

GLIBC main library libc-2.24.so
This shared object has an INTERP header, which is /lib64/ld-linux-x86-64.so.2 in my system. However we usually considering it a shared library, not an executable.

GLIBC dynamic linker ld-2.24.so
This shared object doesn't have INTERP header because this object itself is an interpreter. It should be considered as an executable since it is useful to load and run GLIBC linked dynamic executables.

This indicates a clear boundary between shared libraries and PIC executables just does not exist.