Skip to content

Commit a41f5b7

Browse files
masahir0ysuryasaimadhu
authored andcommitted
x86/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 379d98d ("x86: vdso: Use $LD instead of $CC to link") $(LD) is directly used, hence -nostdlib is unneeded. Signed-off-by: Masahiro Yamada <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Reviewed-by: Nick Desaulniers <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent fc74e0a commit a41f5b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/entry/vdso/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ $(obj)/vdso32.so.dbg: $(obj)/vdso32/vdso32.lds $(vobjs32) FORCE
172172
# The DSO images are built using a special linker script.
173173
#
174174
quiet_cmd_vdso = VDSO $@
175-
cmd_vdso = $(LD) -nostdlib -o $@ \
175+
cmd_vdso = $(LD) -o $@ \
176176
$(VDSO_LDFLAGS) $(VDSO_LDFLAGS_$(filter %.lds,$(^F))) \
177177
-T $(filter %.lds,$^) $(filter %.o,$^) && \
178178
sh $(srctree)/$(src)/checkundef.sh '$(NM)' '$@'

0 commit comments

Comments
 (0)