Upstream issue: https://sourceware.org/bugzilla/show_bug.cgi?id=31692
The debug information in the shipped .dbg
artifacts seems to be unusable for objdump. The .debug_info
section is corrupt:
0$ tar -zxvf bitcoin-27.0-x86_64-linux-gnu-debug.tar.gz
1$ objdump -Wi bitcoin-27.0/bin/bitcoin-cli.dbg
2
3Section '.debug_info' has an invalid size: 0.
4
5bitcoin-27.0/bin/bitcoin-cli.dbg: file format elf64-x86-64
6
7Section '.debug_info' has an invalid size: 0.
i’ve checked various Linux architectures (at least x86_64, ARM, RISC-V) and the same issue exists there. Interestingly, the Windows build is unaffected. Maybe because of a different gcc/binutils? Builds outside guix seem unaffected.
My first thought is that something goes wrong while splitting the debug symbols. However, the unsplitted binaries suffer from the same problem:
0$ objdump -Wi guix-build-27.0/distsrc-27.0-x86_64-linux-gnu/src/bitcoind
1
2Section '.debug_info' has an invalid size: 0
This issue affects at least release 27.0
and current master.
Edit: Looks like there is a .debug_info
section in the files. objdump -s -j .debug_info bitcoin-27.0/bin/bitcoind.dbg
shows contents, so it’s not really size 0. But it can’t be parsed somehow.