diff options
-rw-r--r-- | arch/arm64/kernel/vdso/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm64/kernel/vdso/Makefile b/arch/arm64/kernel/vdso/Makefile index ff3bddea482d..f6fe17d88da5 100644 --- a/arch/arm64/kernel/vdso/Makefile +++ b/arch/arm64/kernel/vdso/Makefile | |||
@@ -15,6 +15,10 @@ ccflags-y := -shared -fno-common -fno-builtin | |||
15 | ccflags-y += -nostdlib -Wl,-soname=linux-vdso.so.1 \ | 15 | ccflags-y += -nostdlib -Wl,-soname=linux-vdso.so.1 \ |
16 | $(call cc-ldoption, -Wl$(comma)--hash-style=sysv) | 16 | $(call cc-ldoption, -Wl$(comma)--hash-style=sysv) |
17 | 17 | ||
18 | # Workaround for bare-metal (ELF) toolchains that neglect to pass -shared | ||
19 | # down to collect2, resulting in silent corruption of the vDSO image. | ||
20 | ccflags-y += -Wl,-shared | ||
21 | |||
18 | obj-y += vdso.o | 22 | obj-y += vdso.o |
19 | extra-y += vdso.lds vdso-offsets.h | 23 | extra-y += vdso.lds vdso-offsets.h |
20 | CPPFLAGS_vdso.lds += -P -C -U$(ARCH) | 24 | CPPFLAGS_vdso.lds += -P -C -U$(ARCH) |