import struct import unittest from tools.laptop_device_build.runtime_paths import runtime_library_path from tools.laptop_device_build.validate_artifacts import require_aarch64_elf def linked_elf(runpath: str) -> bytes: strings = b"\0" + runpath.encode() + b"\0" data = bytearray(256 + len(strings)) data[:6] = b"\x7fELF\x02\x01" struct.pack_into("