armv7 R_ARM_PREL31 relocation out of range error when loading module
Linus Walleij
linus.walleij at linaro.org
Thu Sep 18 01:49:49 PDT 2025
On Thu, Sep 18, 2025 at 8:55 AM Ard Biesheuvel <ardb at kernel.org> wrote:
> In any case, the right way to solve this would be to ensure that all
> module sections are allocated in the vmalloc space if they cannot all
> fit into the module region. That is slightly tricky to implement
> correctly, but we could add a heuristic based on the module's overall
> size.
IIRC when I made that patch that puts the entire kernel into the
vmalloc area, it had as a side effect to retire MODULES_VADDR
and also load all modules into the vmalloc area. But I guess that
is not what is desired here.
Yours,
Linus Walleij
More information about the linux-arm-kernel
mailing list