https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81863
--- Comment #19 from ard.biesheuvel at linaro dot org --- (In reply to Ramana Radhakrishnan from comment #17) > > Could you put some instructions in this BZ about how you build and test the > kernel to get these errors ? I'm happy to try something before I post the > patch rather than going backwards and forwards. Please use the following branch https://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git/log/?h=arm-kaslr-word-relocs and build the multi_v7_defconfig target export ARCH=arm export CROSS_COMPILE=arm-linux-gnueabihf- make multi_v7_defconfig make zImage (Sidenote: in this case, we apply -mword-relocations to modules as well, which is not really necessary given that Linux kernel modules are simply partially linked objects, and the exposed static relocations are handled by the modules loader, including R_ARM_THM_MOVT_ABS/R_ARM_THM_MOVW_ABS_NC.)