Jan Nieuwenhuizen writes: Hi Danny! >> On Thu, 18 Feb 2021 22:52:57 +0100 >> Jan Nieuwenhuizen wrote: >> Since this only affects the syscall interface and since also our >> ELF headers specify EABI, I would just change the syscalls to EABI: >> Just put the syscall number into r7 and use svc 0. > > Oh, if that's all we should be able to find and fix it? I took a stab at it and created the attached patch, also on wip-arm-bootstrap now. This allows creating simple binaries using gcc-core-mesboot0 and glibc-mesboot0 that run, like "return 42" and even "exit (42)". But something like puts or printf segfaults "Illegal instruction" in strlen: --8<---------------cut here---------------start------------->8--- (gdb) disas /r Dump of assembler code for function strlen: 0x0000d160 <+0>: 03 10 c0 e3 bic r1, r0, #3 => 0x0000d164 <+4>: 04 20 91 e4 ldr r2, [r1], #4 --8<---------------cut here---------------end--------------->8--- makes no sens to me? So, trying to build the first glibc-based gcc --8<---------------cut here---------------start------------->8--- ./pre-inst-env guix build -e '(@@ (gnu packages commencement) gcc-mesboot0)' --8<---------------cut here---------------end--------------->8--- still fails during configure. Seems like I'm stuck here again, hopefully you can spot some silly mistake in my patch or have another helpful insight :-) Greetings, Janneke