Dump the contents of all sections in the ELF file using objdump. Args: objdump_path (Path): Path to the objdump executable. elf_file (Path): Path to the ELF file.
(objdump_path: Path, elf_file: Path)
| 195 | |
| 196 | |
| 197 | def check_section_contents(objdump_path: Path, elf_file: Path): |
| 198 | """ |
| 199 | Dump the contents of all sections in the ELF file using objdump. |
| 200 | |
| 201 | Args: |
| 202 | objdump_path (Path): Path to the objdump executable. |
| 203 | elf_file (Path): Path to the ELF file. |
| 204 | """ |
| 205 | command = [str(objdump_path), "-s", str(elf_file)] |
| 206 | print(f"Dumping all sections of ELF file: {elf_file}") |
| 207 | output = run_command(command, show_output=True) |
| 208 | print("\nELF File Sections Content:") |
| 209 | print(output) |
nothing calls this directly
no test coverage detected