[Bug target/63304] Aarch64 pc-relative load offset out of range
cbaylis at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jan 21 15:52:00 GMT 2016
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)
More information about the Gcc-bugs
mailing list