summaryrefslogtreecommitdiff
path: root/magic/Magdir/elf
diff options
context:
space:
mode:
Diffstat (limited to 'magic/Magdir/elf')
-rw-r--r--magic/Magdir/elf7
1 files changed, 4 insertions, 3 deletions
diff --git a/magic/Magdir/elf b/magic/Magdir/elf
index b5a2e00b3726..f5e1af9a25bc 100644
--- a/magic/Magdir/elf
+++ b/magic/Magdir/elf
@@ -1,6 +1,6 @@
#------------------------------------------------------------------------------
-# $File: elf,v 1.79 2019/12/16 04:24:01 christos Exp $
+# $File: elf,v 1.80 2020/02/12 22:17:33 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,8 +50,9 @@
!:mime application/x-object
>16 leshort 2 executable,
!:mime application/x-executable
->16 leshort 3 shared object,
-!:mime application/x-sharedlib
+>16 leshort 3 ${x?pie executable:shared object},
+
+!:mime application/x-${x?pie-executable:sharedlib}
>16 leshort 4 core file,
!:mime application/x-coredump
# OS-specific