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.
Control: user debian-riscv@lists.debian.org Control: usertags 1012107 - riscv64 Control: forcemerge 1000449 1012107 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