Check that there are no shared object dependencies of a binary executable.
(readelf: str, binary_file: Path)
| 202 | |
| 203 | |
| 204 | def check_dependencies(readelf: str, binary_file: Path) -> int: |
| 205 | """Check that there are no shared object dependencies of a binary executable.""" |
| 206 | elf_dependencies = get_elf_dependencies(readelf, binary_file) |
| 207 | if len(elf_dependencies) > 0: |
| 208 | print("Found the following shared object dependencies:") |
| 209 | for dependency in elf_dependencies: |
| 210 | print(" *", dependency) |
| 211 | print() |
| 212 | return STATUS_ERROR |
| 213 | return STATUS_OK |
| 214 | |
| 215 | |
| 216 | def check_disallowed_symbols_build_dir(nm: str, cxxfilt: str, build_root: Path) -> int: |
no test coverage detected