Bug 25498 - support reading /usr/src/kernels/...../vmlinux.id as buildid for kernel images
Summary: support reading /usr/src/kernels/...../vmlinux.id as buildid for kernel images
Status: NEW
Alias: None
Product: elfutils
Classification: Unclassified
Component: libdw (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-03 18:04 UTC by Frank Ch. Eigler
Modified: 2020-02-03 18:04 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Ch. Eigler 2020-02-03 18:04:46 UTC
Some linux kernel install images lack anything resembling the ELF file that elfutils can read - even after x86 vmlinuz-style unwrapping/decompression.  For example, arm64 butchers the poor vmlinux via

objdump -O binary -R .note.gnu.build-id 

etc. in linux arch/arm64/boot/Makefile

That leaves us nothing to extract a buildid, with which find_debuginfo() could reach out to debuginfod.

"No, there is another." --- random jedi guy

Yes, find_debuginfo() for the kernel only, could also snoop on the file 

    /usr/src/kernels/`uname -r`/vmlinux.id

which contains the buildid hex string, as a part of the kernel-devel subrpm on fedora/rhel-ish packaging at least.  (No such luck on debian/ubuntu so far.)