error: use a wrapper object for hexadecimal output

PiperOrigin-RevId: 540584755
Change-Id: I9d08b47f61c87768f3b0dabbb3c643d791ca8a81
5 files changed
tree: a80a520f42b768ac36c825ae6782edb5f0c8d26b
  1. doc/
  2. fuzz/
  3. testdata/
  4. abigail_reader.cc
  5. abigail_reader.h
  6. abigail_reader_test.cc
  7. btf_reader.cc
  8. btf_reader.h
  9. catch.cc
  10. comparison.cc
  11. comparison.h
  12. CONTRIBUTING.md
  13. deduplication.cc
  14. deduplication.h
  15. dwarf_processor.cc
  16. dwarf_processor.h
  17. dwarf_wrappers.cc
  18. dwarf_wrappers.h
  19. elf_loader.cc
  20. elf_loader.h
  21. elf_reader.cc
  22. elf_reader.h
  23. elf_reader_test.cc
  24. equality.h
  25. equality_cache.h
  26. error.h
  27. error_test.cc
  28. fidelity.cc
  29. fidelity.h
  30. file_descriptor.cc
  31. file_descriptor.h
  32. file_descriptor_test.cc
  33. fingerprint.cc
  34. fingerprint.h
  35. graph.cc
  36. graph.h
  37. hashing.h
  38. input.cc
  39. input.h
  40. LICENSE
  41. METADATA
  42. metrics.cc
  43. metrics.h
  44. metrics_test.cc
  45. MODULE_LICENSE_LLVM
  46. naming.cc
  47. naming.h
  48. order.h
  49. order_test.cc
  50. OWNERS
  51. post_processing.cc
  52. post_processing.h
  53. proto_reader.cc
  54. proto_reader.h
  55. proto_writer.cc
  56. proto_writer.h
  57. reader_options.h
  58. README.md
  59. reporting.cc
  60. reporting.h
  61. reporting_test.cc
  62. scc.h
  63. scc_test.cc
  64. scope.h
  65. stable_hash.cc
  66. stable_hash.h
  67. stg.cc
  68. stg.proto
  69. stgdiff.cc
  70. stgdiff_test.cc
  71. stginfo.cc
  72. substitution.h
  73. symbol_filter.cc
  74. symbol_filter.h
  75. symbol_filter_test.cc
  76. type_normalisation.cc
  77. type_normalisation.h
  78. type_resolution.cc
  79. type_resolution.h
  80. unification.cc
  81. unification.h
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 libxml2 for XML parsing, on libelf to find .BTF sections and on Linux UAPI headers for BTF types.

How to build the project

To build from source, you will need a few dependencies:

DebianRedHat
libelf-develfutils-devel
libxml2-devlibxml2-devel
linux-libc-devkernel-headers

Instructions are included for local and Docker builds.

Local Build

You can build as follows:

$ make

Docker Build

A Dockerfile is provided to build a container with libabigail to easily compile the STG tools:

$ docker build -t stg .

And then enter the container:

$ docker run -it stg

If you want to bind your development code to the container:

$ docker run -it $PWD:/src -it stg

The source code is added to /src, so when your code is bound you can edit on your host and re-compile in the container.

Note that the Dockerfile can provide a development environment (non multi-stage build with the source code) or a production image (a multi-stage build with only the final binary). By default we provide the first, and you can uncomment the final lines of the file for the latter.

Contributions

See CONTRIBUTING.md for details.