[Bug libdw/25498] New: support reading /usr/src/kernels/...../vmlinux.id as buildid for kernel images

fche at redhat dot com sourceware-bugzilla@sourceware.org
Mon Feb 3 18:04:00 GMT 2020


https://sourceware.org/bugzilla/show_bug.cgi?id=25498

            Bug ID: 25498
           Summary: support reading /usr/src/kernels/...../vmlinux.id as
                    buildid for kernel images
           Product: elfutils
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libdw
          Assignee: unassigned at sourceware dot org
          Reporter: fche at redhat dot com
                CC: elfutils-devel at sourceware dot org
  Target Milestone: ---

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.)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Elfutils-devel mailing list