From ed971e5e3ae79bd28697d16c8b78b693052484e4 Mon Sep 17 00:00:00 2001 From: Christos Zoulas Date: Wed, 12 Feb 2020 22:17:33 +0000 Subject: [PATCH 3/3] The executable bit is only set when DF_1_PIE bit is set so it is fine. --- magic/Magdir/elf | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/magic/Magdir/elf b/magic/Magdir/elf index b5a2e00b..f5e1af9a 100644 --- a/magic/Magdir/elf +++ b/magic/Magdir/elf @@ -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 -- 2.26.0