LoongArch: vDSO: remove -nostdlib complier flag
PATCH v2 1/1 LoongArch: vDSO: remove -nostdlib complier flag
Since $(LD) is directly used, hence -nostdlib is unneeded, MIPS has removed this, we should remove it too. bdbf2038fbf4 ("MIPS: VDSO: remove -nostdlib compiler flag").
In fact, other architectures also use $(LD).fe00e50b2db8 ("ARM: 8858/1: vdso: use $(LD) instead of $(CC) to link VDSO") 691efbedc60d ("arm64: vdso: use $(LD) instead of $(CC) to link VDSO") 2ff906994b6c ("MIPS: VDSO: Use $(LD) instead of $(CC) to link VDSO") 2b2a25845d53 ("s390/vdso: Use $(LD) instead of $(CC) to link vDSO")
------
Changes in v2:
- apply commit msg edit suggestion by Yanteng Si
------
--- arch/loongarch/vdso/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/loongarch/vdso/Makefile +1 -1
@@ -36,7 +36,7 @@ endif # VDSO linker flags. ldflags-y := -Bsymbolic --no-undefined -soname=linux-vdso.so.1 \ - $(filter -E%,$(KBUILD_CFLAGS)) -nostdlib -shared --build-id -T + $(filter -E%,$(KBUILD_CFLAGS)) -shared --build-id -T # # Shared build commands.
Signature · 1 line
2.20.1
Applied, thanks.
Huacai
Quoted 38 lines · Wentao Guan
Since $(LD) is directly used, hence -nostdlib is unneeded, MIPS has removed this, we should remove it too.
bdbf2038fbf4("MIPS: VDSO: remove -nostdlib compiler flag").In fact, other architectures also use $(LD).
fe00e50b2db8("ARM: 8858/1: vdso: use $(LD) instead of $(CC) to link VDSO")691efbedc60d("arm64: vdso: use $(LD) instead of $(CC) to link VDSO")2ff906994b6c("MIPS: VDSO: Use $(LD) instead of $(CC) to link VDSO")2b2a25845d53("s390/vdso: Use $(LD) instead of $(CC) to link vDSO")Reviewed-by Yanteng Si <[email protected]>Signed-off-by Wentao Guan <[email protected]>------
Changes in v2:
- apply commit msg edit suggestion by Yanteng Si
--------- arch/loongarch/vdso/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/loongarch/vdso/Makefile +1
-2@@ -36,7 +36,7 @@ endif # VDSO linker flags. ldflags-y := -Bsymbolic --no-undefined -soname=linux-vdso.so.1 \ - $(filter -E%,$(KBUILD_CFLAGS)) -nostdlib -shared --build-id -T + $(filter -E%,$(KBUILD_CFLAGS)) -shared --build-id -T # # Shared build commands. --2.20.1