Skip to content

Commit 34688c7

Browse files
masahir0ywilldeacon
authored andcommitted
arm64: vdso: remove -nostdlib compiler flag
The -nostdlib option requests the compiler to not use the standard system startup files or libraries when linking. It is effective only when $(CC) is used as a linker driver. Since commit 691efbe ("arm64: vdso: use $(LD) instead of $(CC) to link VDSO"), $(LD) is directly used, hence -nostdlib is unneeded. Signed-off-by: Masahiro Yamada <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent 9dc232a commit 34688c7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

arch/arm64/kernel/vdso/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ btildflags-$(CONFIG_ARM64_BTI_KERNEL) += -z force-bti
2323
# potential future proofing if we end up with internal calls to the exported
2424
# routines, as x86 does (see 6f121e548f83 ("x86, vdso: Reimplement vdso.so
2525
# preparation in build-time C")).
26-
ldflags-y := -shared -nostdlib -soname=linux-vdso.so.1 --hash-style=sysv \
26+
ldflags-y := -shared -soname=linux-vdso.so.1 --hash-style=sysv \
2727
-Bsymbolic --build-id=sha1 -n $(btildflags-y) -T
2828

2929
ccflags-y := -fno-common -fno-builtin -fno-stack-protector -ffixed-x18

arch/arm64/kernel/vdso32/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ VDSO_AFLAGS += -D__ASSEMBLY__
102102
# From arm vDSO Makefile
103103
VDSO_LDFLAGS += -Bsymbolic --no-undefined -soname=linux-vdso.so.1
104104
VDSO_LDFLAGS += -z max-page-size=4096 -z common-page-size=4096
105-
VDSO_LDFLAGS += -nostdlib -shared --hash-style=sysv --build-id=sha1
105+
VDSO_LDFLAGS += -shared --hash-style=sysv --build-id=sha1
106106

107107

108108
# Borrow vdsomunge.c from the arm vDSO

0 commit comments

Comments
 (0)