提交 bbc16473 编写于 作者: X Xi Ruoyao 提交者: Hongchen Zhang

LoongArch: Add Kconfig option AS_HAS_EXPLICIT_RELOCS

LoongArch inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I5OHOB

--------------------------------

GNU as >= 2.40 and GCC >= 13 will support using explicit relocation
hints in the assembly code, instead of la.* macros. The usage of
explicit relocation hints can improve code generation so it's enabled
by default by GCC >= 13.

Introduce a Kconfig option AS_HAS_EXPLICIT_RELOCS as the switch for
"use explicit relocation hints or not".
Signed-off-by: NXi Ruoyao <xry111@xry111.site>
Signed-off-by: NHuacai Chen <chenhuacai@loongson.cn>
上级 6081d8fd
...@@ -206,6 +206,9 @@ config SCHED_OMIT_FRAME_POINTER ...@@ -206,6 +206,9 @@ config SCHED_OMIT_FRAME_POINTER
bool bool
default y default y
config AS_HAS_EXPLICIT_RELOCS
def_bool $(as-instr,x:pcalau12i \$t0$(comma)%pc_hi20(x))
menu "Kernel type and options" menu "Kernel type and options"
source "kernel/Kconfig.hz" source "kernel/Kconfig.hz"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册