ELF loader: implement getting an optional section by name

Add method `MaybeGetSectionByName`, which is a refactored version of `GetSectionsByName`.

PiperOrigin-RevId: 472711028
Change-Id: Id33bafb2ff78386ea529f76092f361c4b91d5430
1 file changed
tree: 83255fd3ff0979ffdd263abb4186f05c64943dda
  1. doc/
  2. fuzz/
  3. testdata/
  4. abigail_reader.cc
  5. abigail_reader.h
  6. btf_reader.cc
  7. btf_reader.h
  8. catch.cc
  9. CONTRIBUTING.md
  10. crc.h
  11. elf_loader.cc
  12. elf_loader.h
  13. elf_reader.cc
  14. elf_reader.h
  15. error.h
  16. error_test.cc
  17. id.h
  18. LICENSE
  19. METADATA
  20. MODULE_LICENSE_LLVM
  21. order.h
  22. order_test.cc
  23. OWNERS
  24. post_processing.cc
  25. post_processing.h
  26. README.md
  27. reporting.cc
  28. reporting.h
  29. scc.h
  30. scc_test.cc
  31. stg.cc
  32. stg.h
  33. stgdiff.cc
  34. stgdiff_test.cc
  35. stginfo.cc
README.md

Symbol-Type Graph (STG)

The STG (symbol-type graph) is an ABI representation and this project contains tools for the creation and comparison of such representations. At present parsers exist for libabigail's ABI XML (C types only) and BTF. The ABI diff tool, stgdiff, supports multiple reporting options. This software currently depends on libabigail for ELF symbol functionality, on libxml2 for XML parsing and on Linux UAPI headers for BTF types.

How to build the project

TBD

Contributions

See CONTRIBUTING.md for details.