]> git.baikalelectronics.ru Git - kernel.git/commit
LoongArch: Add Kconfig option AS_HAS_EXPLICIT_RELOCS
authorXi Ruoyao <xry111@xry111.site>
Wed, 12 Oct 2022 08:36:08 +0000 (16:36 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Wed, 12 Oct 2022 08:36:08 +0000 (16:36 +0800)
commit5de97f2c9c286a80e6dfced5a16e45a8ae1e47ed
tree6ccf248c67c7a279f97fe2e89eb7ac4b2f329437
parent8cf48882eb270064556904df861f0a4a993eb2d1
LoongArch: Add Kconfig option AS_HAS_EXPLICIT_RELOCS

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".

Tested-by: WANG Xuerui <git@xen0n.name>
Signed-off-by: Xi Ruoyao <xry111@xry111.site>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/Kconfig