问题标签 [efi]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
uefi - UEFI 从内存加载图像
我正在研究使用 Bootservices 函数 LoadImage 从内存中加载 UEFI 应用程序映像。函数参数为:
我被允许提供一个源缓冲区,该缓冲区已经填充了要加载的 PE/COFF 图像。我目前正在使用 sourcebuffer,并且已经使用有效的 PE/COFF 文件内容预填充了缓冲区。我将它传递到 SourceBuffer 下并将 DevicePath 设置为 Null。我收到错误“ EFI_LOAD_ERROR Image was not loaded because the image format was corrupt or not understood
。”
我究竟做错了什么?