summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristos Zoulas <christos@zoulas.com>2019-12-16 04:24:01 +0000
committerChristos Zoulas <christos@zoulas.com>2019-12-16 04:24:01 +0000
commitd653309de04ed10fdeda79f2c6ca7a7e96e122f1 (patch)
treed383cb8f5ade3c66b97780738c17817fa92db2e9
parente5051a348736048743db1473318471933944f494 (diff)
downloadfile-git-d653309de04ed10fdeda79f2c6ca7a7e96e122f1.tar.gz
Don't depend on the execute bit to determine pie executable or shared object.
-rw-r--r--magic/Magdir/elf7
1 files changed, 3 insertions, 4 deletions
diff --git a/magic/Magdir/elf b/magic/Magdir/elf
index e809fc3b..b5a2e00b 100644
--- a/magic/Magdir/elf
+++ b/magic/Magdir/elf
@@ -1,6 +1,6 @@
#------------------------------------------------------------------------------
-# $File: elf,v 1.78 2019/10/14 22:01:15 glen Exp $
+# $File: elf,v 1.79 2019/12/16 04:24:01 christos Exp $
# elf: file(1) magic for ELF executables
#
# We have to check the byte order flag to see what byte order all the
@@ -50,9 +50,8 @@
!:mime application/x-object
>16 leshort 2 executable,
!:mime application/x-executable
->16 leshort 3 ${x?pie executable:shared object},
-
-!:mime application/x-${x?pie-executable:sharedlib}
+>16 leshort 3 shared object,
+!:mime application/x-sharedlib
>16 leshort 4 core file,
!:mime application/x-coredump
# OS-specific