Skip to content

Commit 66584ea

Browse files
masahir0ysuryasaimadhu
authored andcommitted
x86/build/vdso: Remove meaningless CFLAGS_REMOVE_*.o
CFLAGS_REMOVE_*.o syntax is used to drop particular flags when building objects from C files. It has no effect for assembly files. vdso-note.o is compiled from the assembly file, vdso-note.S, hence CFLAGS_REMOVE_vdso-note.o is meaningless. Neither vvar.c nor vvar.S is found in the vdso directory. Since there is no source file to create vvar.o, CFLAGS_REMOVE_vvar.o is also meaningless. Signed-off-by: Masahiro Yamada <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Cc: Andy Lutomirski <[email protected]> Cc: "H. Peter Anvin" <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: x86-ml <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent de71566 commit 66584ea

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

arch/x86/entry/vdso/Makefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,9 @@ $(vobjs): KBUILD_CFLAGS := $(filter-out $(GCC_PLUGINS_CFLAGS) $(RETPOLINE_CFLAGS
8787
#
8888
# vDSO code runs in userspace and -pg doesn't help with profiling anyway.
8989
#
90-
CFLAGS_REMOVE_vdso-note.o = -pg
9190
CFLAGS_REMOVE_vclock_gettime.o = -pg
9291
CFLAGS_REMOVE_vdso32/vclock_gettime.o = -pg
9392
CFLAGS_REMOVE_vgetcpu.o = -pg
94-
CFLAGS_REMOVE_vvar.o = -pg
9593

9694
#
9795
# X32 processes use x32 vDSO to access 64bit kernel data.

0 commit comments

Comments
 (0)