This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/81863] [7 regression] -mword-relocations is unreliable
- From: "ard.biesheuvel at linaro dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 05 Oct 2017 09:43:47 +0000
- Subject: [Bug target/81863] [7 regression] -mword-relocations is unreliable
- Auto-submitted: auto-generated
- References: <bug-81863-4@http.gcc.gnu.org/bugzilla/>
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.)