Skip to content

Parse ELF header for version definitions

Ludovico de Nittis requested to merge wip/denittis/issues95 into main
  • inspect-library: Refactor array printing in a separate function

    Move the common print operation in a separate function to reduce code duplication.

  • inspect-library: Parse ELF header for version definitions

    If in the .symbols file there is a verdef $VERSION@$VERSION, we can manually parse the ELF header to check if the library has the expected $VERSION or not.

    All missing versions will be reported in output in a list called missing_versions.

    If the library is unexpectedly unversioned, the missing_verdef entry will be set to true.

  • tests/library: Refactor tests to reduce code duplication

  • library: Add issues for missing versions and unversioned libraries

    Parse the new missing_versions and missing_verdef issues that inspect-library could report.

  • libcurl-compat: There is no need to import a symbol anymore

    With the addition of SRT_LIBRARY_ISSUES_UNVERSIONED, we can now notice when a library is not versioned as initially expected. This means that we can avoid the workaround of importing a symbol.


Fixes: #95 (closed)

Merge request reports