Skip to content
Commit cbfd44bd authored by WANG Rui's avatar WANG Rui Committed by Huacai Chen
Browse files

LoongArch: Explicitly set -fdirect-access-external-data for vmlinux



After this llvm commit [1], The -fno-pic does not imply direct access
external data. Explicitly set -fdirect-access-external-data for vmlinux
that can avoids GOT entries.

Link: https://github.com/llvm/llvm-project/commit/47eeee297775347cbdb7624d6a766c2a3eec4a59
Suggested-by: default avatarXi Ruoyao <xry111@xry111.site>
Signed-off-by: default avatarWANG Rui <wangrui@loongson.cn>
Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
parent d3ec75bc
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