Open nathanchance opened 1 year ago
The LoongArch psABI can be pretty strict about the code model selection and access pattern at times, because support for range extension thunks isn't currently implemented nor mandated, so a symbol access in one of the smaller code model's way would naturally fall short in this case.
I'd investigate whether it's KCOV or lld that needs adaptation. thanks for the quick report!
For what it's worth, I think this is low priority now that CONFIG_MODULES
works (#1884), as we can use allmodconfig
for testing, which has a much smaller final image size.
After https://git.kernel.org/chenhuacai/linux-loongson/c/54b9a87ddcc9102826437d3c26ed6c4ab2ad3677, I see the following errors when building
ARCH=loongarch allyesconfig
with the known broken configurations disabled:Turning off
CONFIG_KCOV
avoids the issue. I assume that KCOV instrumentation is blowing up the size of the kernel andld.lld
is not able to cope with that? I would not even bother buildingallyesconfig
normally but it is a better target thanallmodconfig
at the moment :)cc @xen0n