Only call code in a section that has already loaded¶
Sections load one after another; a hook calling a later section can run before its target exists.
Category: hazard · Camera-confirmed
Build: ep7 firmware 1.1, build 1100, om3 firmware 1.1, build 1100, E-M5 Mark III firmware 1.7, build 1700, E-M10 Mark II firmware 1.4, build 1400, E-PM2 firmware 1.6, build 1600 · Cameras: Olympus PEN E-P7, OM SYSTEM OM-3, Olympus OM-D E-M5 Mark III, Olympus OM-D E-M10 Mark II, Olympus PEN E-PM2
Put code a hook calls in the hook's own section or one loaded earlier, or guard the jump with the section's ready bit. Load order differs by body: the E-P7 guide gives 1, 7, 2, 3, 4, 5, 6, 8, 9; the OM-3 notes give 1 to 10 in order; the E-M5 III notes give 1, 7, 2, 3, 4, 5, 6, 8, 9, 10. On the E-M5 III sections become ready in number order whatever the read order, and an access monitor covers sections not yet ready; check the ready order, not the read order.
What happens: A bootloop reported once on the OM-3 port; intermittent dead-at-power-on and reset loops on E-M5 III test builds; cold starts of about 10 s on some E-PM2 bodies.
Symptoms: Fails to start, restarts or loops at power-on; Starts slowly
Observations¶
- Static analysis (Caduceus for E-P7): Load order verified from the boot code; the guide reports the OM-3 port bootlooped once on this mistake. Source: E-P7 firmware guide.
- Static analysis (Caduceus for OM-3): The OM-3 notes record sections loading 1 to 10 in order. Source: Caduceus OM-3 developer notes.
- Static analysis (Oly Firmware Notes and Mods (E-M5 Mark III)): E-M5 III 1.7 load order and per-section ready bits read from the loader; stock code never jumps forward into a section without waiting. Source: E-M5 III boot and section loading.
- Physical camera (Oly Firmware Notes and Mods (E-M5 Mark III)): E-M5 III test builds with an early hook into a later section failed to boot intermittently; guarding the jump on the ready bit gave 10 good boots out of 10. Source: E-M5 III boot and section loading.
- Physical camera (Oly Firmware Notes and Mods (E-M5 Mark III)): Boot-time menu hooks in section 2 jumping into the space after section 7 (read early, ready last) boot-looped; the same code after section 3 behind a ready-bit guard boots. Source: Saved mod settings and native menu rows on the E-M5 III.
- Static analysis (fenykl): E-M10 Mark II 1.4: boot0 and boot1 load at reset, sec1 in Usr0, sec2 in Usr1, sec4 to sec6 in Usr4; fenykl marks each function with its section and calls it only after that load. Source: fenykl firmware symbol table for E-M10 Mark II 1.4.
- Static analysis (EPM2Mod): E-PM2 1.6: a peaking hook in the kernel range jumped into segment 2. Live view reaches it during the quick start, before the segment-2 copy ends. Source: EPM2Mod slow cold start investigation.
- Physical camera (EPM2Mod): On a body with about 10 s cold starts, a contributor's build with that code moved into segment 1 started at once after 60 s off. The project's fix build passed on the owner's bodies, which never showed the fault. Source: EPM2Mod slow cold start investigation.
- Emulator (EPM2Mod): E-PM2 1.6: five film simulations' jump tables also led into segment 2. With it not copied, cold-start-fix faulted in 50 of 210 harness cases and film-tables-fix in none. Source: E-PM2 load order, space and open risks.
Sources and record¶
- E-P7 firmware guide
- Caduceus OM-3 developer notes
- E-M5 III boot and section loading
- Saved mod settings and native menu rows on the E-M5 III
- fenykl firmware symbol table for E-M10 Mark II 1.4
- EPM2Mod slow cold start investigation
- E-PM2 load order, space and open risks
Canonical record · Substantively reviewed: 2026-11-26.