Bug 25368 - handle native golang buildids
Summary: handle native golang buildids
Status: RESOLVED WONTFIX
Alias: None
Product: elfutils
Classification: Unclassified
Component: debuginfod (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-10 19:48 UTC by Frank Ch. Eigler
Modified: 2022-05-27 15:16 UTC (History)
3 users (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-01-10 19:48:24 UTC
Native golang puts unique buildids into a .note.go.buildid section, with a much longer textual string than our normal 20-byte blob.  debuginfod would need to add these to the index, and golang debuginfo consumers would have to learn to pass it.  hex-encoding the textual golang buildid should make it fit right into the webapi, instead of worrying about '/' characters embedded inside.

RHEL packaged golang binaries get a normal gnu-style buildid also as a part of package postprocessing, so this functionality may not be required there.
Comment 1 Noah Sanci 2022-05-27 15:08:25 UTC
Debuginfod can scan rpms including golang executables, debuginfo, and source and serve them so long as the golang binary has an associate gnu build.
Comment 2 Noah Sanci 2022-05-27 15:16:42 UTC
(In reply to Noah Sanci from comment #1)
> Debuginfod can scan rpms including golang executables, debuginfo, and source
> and serve them so long as the golang binary has an associate gnu build.
Debuginfod functions with golang binaries so long as the binary has an associated .note.gnu.build-id