Skip to content

Commit 7b737ad

Browse files
masahir0yhcahca
authored andcommitted
s390/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 2b2a258 ("s390/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: Heiko Carstens <[email protected]>
1 parent 4b9e043 commit 7b737ad

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

arch/s390/kernel/vdso32/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ KBUILD_AFLAGS_32 += -m31 -s
2222
KBUILD_CFLAGS_32 := $(filter-out -m64,$(KBUILD_CFLAGS))
2323
KBUILD_CFLAGS_32 += -m31 -fPIC -shared -fno-common -fno-builtin
2424

25-
LDFLAGS_vdso32.so.dbg += -fPIC -shared -nostdlib -soname=linux-vdso32.so.1 \
25+
LDFLAGS_vdso32.so.dbg += -fPIC -shared -soname=linux-vdso32.so.1 \
2626
--hash-style=both --build-id=sha1 -melf_s390 -T
2727

2828
$(targets:%=$(obj)/%.dbg): KBUILD_CFLAGS = $(KBUILD_CFLAGS_32)

arch/s390/kernel/vdso64/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ KBUILD_AFLAGS_64 += -m64 -s
2525

2626
KBUILD_CFLAGS_64 := $(filter-out -m64,$(KBUILD_CFLAGS))
2727
KBUILD_CFLAGS_64 += -m64 -fPIC -shared -fno-common -fno-builtin
28-
ldflags-y := -fPIC -shared -nostdlib -soname=linux-vdso64.so.1 \
28+
ldflags-y := -fPIC -shared -soname=linux-vdso64.so.1 \
2929
--hash-style=both --build-id=sha1 -T
3030

3131
$(targets:%=$(obj)/%.dbg): KBUILD_CFLAGS = $(KBUILD_CFLAGS_64)

0 commit comments

Comments
 (0)