Check the format of the ELF file using objdump to confirm it's being read correctly. Args: objdump_path (Path): Path to the objdump executable. elf_file (Path): Path to the ELF file.
(objdump_path: Path, elf_file: Path)
| 180 | |
| 181 | |
| 182 | def check_elf_format(objdump_path: Path, elf_file: Path): |
| 183 | """ |
| 184 | Check the format of the ELF file using objdump to confirm it's being read correctly. |
| 185 | |
| 186 | Args: |
| 187 | objdump_path (Path): Path to the objdump executable. |
| 188 | elf_file (Path): Path to the ELF file. |
| 189 | """ |
| 190 | command = [str(objdump_path), "-f", str(elf_file)] |
| 191 | print(f"Checking ELF file format: {elf_file}") |
| 192 | output = run_command(command, show_output=True) |
| 193 | print("\nELF File Format Information:") |
| 194 | print(output) |
| 195 | |
| 196 | |
| 197 | def check_section_contents(objdump_path: Path, elf_file: Path): |
nothing calls this directly
no test coverage detected