Flat m68k binaries apparently don't work out of the box and those two tiny patches fixed that for me. On top of that they didn't break support for ARM flat binaries (tested with test_arm_bflt.py) nor m68k ELF binaries (tested static busybox from Debian). Unfortunately I wasn't able to find any root filesystem for m68k uClinux so I didn't prepare any test similar to test_arm_bflt.py.
Wojtek Kaniewski (2): Don't reverse bFLT endianess when not needed Fill out m68k PIC register linux-user/elfload.c | 1 + linux-user/flatload.c | 2 ++ 2 files changed, 3 insertions(+) -- 2.45.3