Hi Diego, On Friday, 2 October 2026 at 00:53, Santi cluke <[email protected]> wrote:
> Excelent! > > While testing pmap_bootstrap locally the kernel never reached > c_boot_entry: _start faults in its .bss clear (QEMU -d int shows > fault_store at _start+0x2c, tval = higher-half address of _edata). > > Cause: the Debian cross toolchain defaults to PIC/PIE, so 'la' in > boothdr.S assembles to GOT loads (R_RISCV_GOT_HI20) and the GOT holds > VMAs, which do not exist in Bare mode. > Oh... I had not predicted different toolchains would be built with -fPIE enabled by default. That sounds about right, and it is indeed a gap in our build configuration. > I would fix this by building with -fno-pie -fno-PIE -fno-pic, as i386 > and x86_64 already do (also in AM_CCASFLAGS; that is how boothdr.o got > the GOT relocations). Does that look right to you? If so I will send > the patch. > Yes, please. This should be the right approach. Thanks for your report! > Best, > Diego Hakan
