On 20/05/2021 19:15, Kevin O'Connor wrote:
Unfortunately it's not valid, in the general case, to deploy an option rom and not run it. The option rom itself can alter its size field and roms are known to do that. Without running the rom, it's often not possible to get its size.
If it's not desirable to actually run the rom, you might want to consider hex editing the particular rom binary so that it's entry point just immediately returns.
-Kevin
Thanks. Yes, I did wonder about that, thank you for confirming it.
I haven't even tested the patch yet, but I was curious what someone would think of it.