Skip to content
Commit 4e71ed79 authored by Changbin Du's avatar Changbin Du Committed by Guo Ren
Browse files

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: fba8a867 ("RISC-V: Add kexec support")
Signed-off-by: default avatarChangbin Du <changbin.du@gmail.com>
Cc: stable@vger.kernel.org
Signed-off-by: default avatarPalmer Dabbelt <palmerdabbelt@google.com>
parent dae07dff
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment