|
@@ -15,6 +15,10 @@ ccflags-y := -shared -fno-common -fno-builtin
|
|
ccflags-y += -nostdlib -Wl,-soname=linux-vdso.so.1 \
|
|
ccflags-y += -nostdlib -Wl,-soname=linux-vdso.so.1 \
|
|
$(call cc-ldoption, -Wl$(comma)--hash-style=sysv)
|
|
$(call cc-ldoption, -Wl$(comma)--hash-style=sysv)
|
|
|
|
|
|
|
|
+# Workaround for bare-metal (ELF) toolchains that neglect to pass -shared
|
|
|
|
+# down to collect2, resulting in silent corruption of the vDSO image.
|
|
|
|
+ccflags-y += -Wl,-shared
|
|
|
|
+
|
|
obj-y += vdso.o
|
|
obj-y += vdso.o
|
|
extra-y += vdso.lds vdso-offsets.h
|
|
extra-y += vdso.lds vdso-offsets.h
|
|
CPPFLAGS_vdso.lds += -P -C -U$(ARCH)
|
|
CPPFLAGS_vdso.lds += -P -C -U$(ARCH)
|