[elflib] Support reading build ID from sections

To handle split debug binaries we should first read the build ID from the
section and then only if the section is missing fallback to the program
header. I've added tests here for the only section case and the only
program header case but the symbolizer has more tricky tests using
both.

Change-Id: I593e2f4f9d8e3f9ab40e431ebc198ba4e8860a84
7 files changed
tree: 89729e278a287d6323574c8fad6d87760178664d
  1. artifacts/
  2. bloaty/
  3. botanist/
  4. breakpad/
  5. build/
  6. buildbucket/
  7. cache/
  8. cmd/
  9. color/
  10. command/
  11. digest/
  12. elflib/
  13. gcs/
  14. gndoc/
  15. isatty/
  16. logger/
  17. mdns/
  18. memory/
  19. netboot/
  20. netutil/
  21. ninjalog/
  22. qemu/
  23. resultstore/
  24. retry/
  25. runner/
  26. runtests/
  27. secrets/
  28. serial/
  29. sshutil/
  30. symbolize/
  31. tap/
  32. tarutil/
  33. telnet/
  34. testrunner/
  35. testsharder/
  36. tftp/
  37. .gitignore
  38. go.mod
  39. go.sum
  40. LICENSE
  41. manifest
  42. PATENTS
  43. README.md
README.md

tools

This repo contains tools used in Fuchsia build and development.

Go packages from here are automatically built and uploaded to CIPD and Google Storage by bots using the tools recipe. To add a tool to the build:

  • Edit the bot config.
  • Find the builder_mixins section with name: "tools".
  • Edit the JSON in properties_j to add a string to the packages list:
"fuchsia.googlesource.com/tools/cmd/your-new-tool"