Write up: fixing an off-by-one errorin GHCs in-memory linker

A while ago, I debugged and fixed an odd off-by-one error in our in-memory linker for AArch64-darwin (e.g. macOS on M1 or iOS), I’ve spent some time to produce a white up. Hope this is interesting! Happy to answer any questions!

10 Likes

What a heroic tale! This kind of bug is really hard to find – well done!

Simon

6 Likes

Wow, that is an amazing feat! Congratulations on solving that! It seems like you were only a step away from rewiring the cpu :slight_smile: