https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63304
cbaylis at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |cbaylis at gcc dot gnu.org --- Comment #40 from cbaylis at gcc dot gnu.org --- The kernel does support a mechanism to add a command line option for only compilers which support it. Documentation/kbuild/makefiles.txt: cc-option cc-option is used to check if $(CC) supports a given option, and if not supported to use an optional second option. I think you could therefore add this line to arch/arm64/Makefile KBUILD_CFLAGS += $(call cc-option,-mpc-relative-literal-loads)