Create a dummy ELF file using the specified linker script and dummy object file. Args: ld_path (Path): Path to the ld executable. linker_script (Path): Path to the linker script. dummy_obj (Path): Path to the dummy object file. output_elf (Path): Path to the
(
ld_path: Path, linker_script: Path, dummy_obj: Path, output_elf: Path, platform: str
)
| 297 | |
| 298 | |
| 299 | def _create_dummy_elf( |
| 300 | ld_path: Path, linker_script: Path, dummy_obj: Path, output_elf: Path, platform: str |
| 301 | ): |
| 302 | """ |
| 303 | Create a dummy ELF file using the specified linker script and dummy object file. |
| 304 | |
| 305 | Args: |
| 306 | ld_path (Path): Path to the ld executable. |
| 307 | linker_script (Path): Path to the linker script. |
| 308 | dummy_obj (Path): Path to the dummy object file. |
| 309 | output_elf (Path): Path to the output ELF file. |
| 310 | platform (str): Target platform. |
| 311 | """ |
| 312 | print(f"Creating {platform} dummy ELF file...") |
| 313 | |
| 314 | command = [ |
| 315 | str(ld_path), |
| 316 | str(dummy_obj), |
| 317 | "-T", |
| 318 | str(linker_script), |
| 319 | "-o", |
| 320 | str(output_elf), |
| 321 | ] |
| 322 | |
| 323 | print(f"Creating {platform} dummy ELF file: {output_elf}") |
| 324 | _run_command(command, show_output=True) |
| 325 | |
| 326 | |
| 327 | def _update_elf_sections( |
no test coverage detected