Your message dated Sun, 05 Feb 2017 20:54:00 +0000
with message-id <[email protected]>
and subject line Re: [file] Misdetect many executables (for example /bin/mv or 
my own programs compiled), but not all (for example /bin/bash), as shared 
objects
has caused the Debian Bug report #854300,
regarding [file] Misdetect many executables (for example /bin/mv or my own 
programs compiled), but not all (for example /bin/bash), as shared objects
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
854300: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=854300
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---

Package: file
Version: 1:5.29-3
Severity: important

--- Please enter the report below this line. ---
This is the problem:

panlukasz@BlackMachine:~$ file /bin/bash
/bin/bash: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=30f7b0a44a50da2b27e1f339243a61c8a128f7da, stripped
panlukasz@BlackMachine:~$ file /bin/mv
/bin/mv: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=9f1c3f8dc6f498965647b9b701f796de613f2ff4, stripped
panlukasz@BlackMachine:~$ file /usr/bin/amarok
/usr/bin/amarok: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=9c762fbadcac0f066896efe77053b09391ea2d47, stripped
panlukasz@BlackMachine:~$ file /usr/bin/clementine
/usr/bin/clementine: ELF 64-bit LSB shared object, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=db734a883fe26f605686259b1ceb9426a29c94a2, stripped
panlukasz@BlackMachine:~$ file /usr/bin/tex
/usr/bin/tex: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=fda354ea1f5e2bada55c1dd5d3005f3f49bde5c1, stripped
panlukasz@BlackMachine:~$ file /bin/ls
/bin/ls: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=4039bb26a6fdfc6ce73e38f9ba87d82ad3f58506, stripped
panlukasz@BlackMachine:~$ file /usr/bin/make
/usr/bin/make: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=c7965d43d08f3e0a6b2071efb1b6c8b23b607382, stripped
panlukasz@BlackMachine:~$ file /usr/lib/libkemoticons.so.4.14.26
/usr/lib/libkemoticons.so.4.14.26: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=e6c81fb2670f30be6f4e356292c7ca416d764b98, stripped
panlukasz@BlackMachine:~$


--- System information. ---
Architecture:
Kernel: Linux 4.9.0-1-amd64

Debian Release: 9.0
500 testing ftp.pl.debian.org
500 stable download.videolan.org

--- Package information. ---
Depends (Version) | Installed
==========================-+-=============
libc6 (>= 2.4) | 2.24-9
libmagic1 (= 1:5.29-3) | 1:5.29-3
zlib1g (>= 1:1.1.4) | 1:1.2.8.dfsg-5


Package's Recommends field is empty.

Package's Suggests field is empty.

--- End Message ---
--- Begin Message ---
On Sun, 5 Feb 2017 21:40:28 +0100 =?UTF-8?Q?=c5=81ukasz_Konieczny?=
<[email protected]> wrote:
> 
> Package: file
> Version: 1:5.29-3
> Severity: important
> 
> --- Please enter the report below this line. ---
> This is the problem:
> 
> panlukasz@BlackMachine:~$ file /bin/bash
> [...]
> 

Hi,

This is an artefact of enabling "position independent executable" (PIE)
in GCC-6 by default.  The ELF binaries are literally flagged as a
"shared object", so it is technically correct - albeit very confusing if
you do not know the implementation details of PIE.

This problem is (now) also documented in the release notes:

https://www.debian.org/releases/stretch/amd64/release-notes/ch-information.en.html#pie-is-now-default


Thanks,
~Niels

--- End Message ---

Reply via email to