]> git.baikalelectronics.ru Git - kernel.git/commit
riscv: kexec: do not add '-mno-relax' flag if compiler doesn't support it
authorChangbin Du <changbin.du@gmail.com>
Thu, 22 Jul 2021 02:17:15 +0000 (10:17 +0800)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Thu, 12 Aug 2021 14:16:52 +0000 (07:16 -0700)
commit9a1ab36ae23b375ab809411df179f908ba6b718c
tree1bcba2f8d6f9394badeb339d40bfe9d3018a3111
parent1884206aedfe908c2574442c849fc8f952d20881
riscv: kexec: do not add '-mno-relax' flag if compiler doesn't support it

The RISC-V special option '-mno-relax' which to disable linker relaxations
is supported by GCC8+. For GCC7 and lower versions do not support this
option.

Fixes: 41b2442e1586 ("RISC-V: Add kexec support")
Signed-off-by: Changbin Du <changbin.du@gmail.com>
Cc: stable@vger.kernel.org
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/kernel/Makefile