Bug#1012107: riscv64 arch readelf -h *.debug, readelf: Error: Unable to find program interpreter name

2022-05-30 Thread Paul Wise
Control: user debian-ri...@lists.debian.org
Control: usertags 1012107 - riscv64
Control: forcemerge 1000449 1012107

On Mon, 2022-05-30 at 09:48 +, xiao sheng wen wrote:

> Usertags: riscv64
> readelf -h 
> /usr/lib/debug/.build-id/3b/7ede587dea6f4387552e0baad2596c7bec28dc.debug
> readelf: Error: Unable to find program interpreter name

This is not RISC-V specific, I get it on amd64 too and it has already
been reported for that architecture in #1000449. Fixing the bug info.

$ readelf -h 
/usr/lib/debug/.build-id/3b/0284933ad9549fede5b4bcbe2bf3f96d077fca.debug 
ELF Header:
  Magic:   7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00 
  Class: ELF64
  Data:  2's complement, little endian
  Version:   1 (current)
  OS/ABI:UNIX - System V
  ABI Version:   0
  Type:  DYN (Shared object file)
  Machine:   Advanced Micro Devices X86-64
  Version:   0x1
  Entry point address:   0x52d0
  Start of program headers:  64 (bytes into file)
  Start of section headers:  205672 (bytes into file)
  Flags: 0x0
  Size of this header:   64 (bytes)
  Size of program headers:   56 (bytes)
  Number of program headers: 13
  Size of section headers:   64 (bytes)
  Number of section headers: 41
  Section header string table index: 40
readelf: Error: Unable to find program interpreter name

-- 
bye,
pabs

https://wiki.debian.org/PaulWise


signature.asc
Description: This is a digitally signed message part


Bug#1012107: riscv64 arch readelf -h *.debug, readelf: Error: Unable to find program interpreter name

2022-05-30 Thread 肖盛文
Package: elfutils
Version: 0.187-1
Severity: minor
User: debian-ri...@lists.debian.org
Usertags: riscv64
X-Debbugs-Cc: atzli...@sina.com, debian-ri...@lists.debian.org

Hi,

 In riscv64 arch, readelf -h any *.debug file, will get one error at last line.

For example:

readelf -h 
/usr/lib/debug/.build-id/3b/7ede587dea6f4387552e0baad2596c7bec28dc.debug

ELF Header:
  Magic:   7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00
  Class: ELF64
  Data:  2's complement, little endian
  Version:   1 (current)
  OS/ABI:UNIX - System V
  ABI Version:   0
  Type:  DYN (Shared object file)
  Machine:   RISC-V
  Version:   0x1
  Entry point address:   0xe78
  Start of program headers:  64 (bytes into file)
  Start of section headers:  11104 (bytes into file)
  Flags: 0x5, RVC, double-float ABI
  Size of this header:   64 (bytes)
  Size of program headers:   56 (bytes)
  Number of program headers: 10
  Size of section headers:   64 (bytes)
  Number of section headers: 38
  Section header string table index: 37
readelf: Error: Unable to find program interpreter name

You may apt install bash-dbgsym to test it.


-- System Information:
Distributor ID: Atzlinux
Description:Tongwandou (atzlinux) 11
Release:11.3
Codename:   bullseye
Architecture: riscv64

Kernel: Linux 5.18.0-starfive-5.18 (SMP w/2 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages elfutils depends on:
ii  libasm1 0.187-1
ii  libc6   2.33-7
ii  libdw1  0.187-1
ii  libelf1 0.187-1
ii  libstdc++6  12.1.0-2

elfutils recommends no packages.

elfutils suggests no packages.

-- no debconf information