Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: 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 2ff906994b6c ("MIPS: VDSO: Use $(LD) instead of $(CC) to
link VDSO"), $(LD) is directly used, hence -nostdlib is unneeded.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>

authored by

Masahiro Yamada and committed by
Thomas Bogendoerfer
bdbf2038 5eeaafc8

+1 -1
+1 -1
arch/mips/vdso/Makefile
··· 57 57 58 58 # VDSO linker flags. 59 59 ldflags-y := -Bsymbolic --no-undefined -soname=linux-vdso.so.1 \ 60 - $(filter -E%,$(KBUILD_CFLAGS)) -nostdlib -shared \ 60 + $(filter -E%,$(KBUILD_CFLAGS)) -shared \ 61 61 -G 0 --eh-frame-hdr --hash-style=sysv --build-id=sha1 -T 62 62 63 63 CFLAGS_REMOVE_vdso.o = $(CC_FLAGS_FTRACE)