Package: file
Version: 1:5.39-3
Severity: normal

Dear Maintainer,

Statically linked PIE executable are mistaken as dynamically linked as below:

$ clang-13 -static -fPIE -static-pie hello.c 
$ ldd a.out
        statically linked
$ file a.out
a.out: ELF 64-bit LSB pie executable, ARM aarch64, version 1 (GNU/Linux), 
dynamically linked, BuildID[sha1]=8fb93260326c669fd2b80d0863ca0c536d425c19, for 
GNU/Linux 3.7.0, not stripped

Best regards, Ryutaroh Matsumoto

-- System Information:
Debian Release: bookworm/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'stable-updates'), (500, 
'stable-security'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: arm64 (aarch64)

Kernel: Linux 5.14.12-clang13 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_CRAP
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages file depends on:
ii  libc6      2.32-4
ii  libmagic1  1:5.39-3

file recommends no packages.

file suggests no packages.

-- no debconf information

Reply via email to