b18: NOP full bl idiom (dangling prefix fix)

This commit is contained in:
SashegDev
2026-09-13 00:18:14 +00:00
parent 4bd9997412
commit 6de5a47b34
+5
View File
@@ -528,6 +528,9 @@ def main():
# else restore r4/r5/sl/fp and return to sbl_main (0x802f681). # else restore r4/r5/sl/fp and return to sbl_main (0x802f681).
# NOTE: overwrites BAE-path head (ldr r2,[pc,#0x28], only used when # NOTE: overwrites BAE-path head (ldr r2,[pc,#0x28], only used when
# [r7]==2 — never in our flow, r7=0). # [r7]==2 — never in our flow, r7=0).
# Also NOPs the FULL bl idiom at 0x8006682 (b17 NOPed only its 2nd
# half, leaving a dangling prefix that fused with the NOP into a
# bogus odd-address store -> alignment fault in QEMU).
d = bytearray(base) d = bytearray(base)
for va, (a, b) in BLX2BL.items(): for va, (a, b) in BLX2BL.items():
@@ -550,6 +553,8 @@ def main():
(0x801B76C, '280b0508', '00000708'), (0x801B76C, '280b0508', '00000708'),
(0x8006682, '00f001f8', 'c046c046'),
(0x8006684, '01f807bd', '46c046c0'), (0x8006684, '01f807bd', '46c046c0'),
(0x8017AFC, 'bde8fc87', 'eef74fb8'), (0x8017AFC, 'bde8fc87', 'eef74fb8'),