Changbin Du 030d6dbf0c
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: fba8a8674f68 ("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>
2021-08-12 07:16:52 -07:00
..
2020-03-31 11:28:30 -07:00
2020-03-31 11:28:30 -07:00
2021-04-26 08:25:24 -07:00
2021-04-26 08:25:23 -07:00
2020-10-02 14:31:28 -07:00
2021-04-26 08:31:28 -07:00
2020-06-09 19:11:24 -07:00
2021-01-07 19:00:50 -08:00
2021-04-26 08:25:09 -07:00