]> git.ipfire.org Git - thirdparty/kernel/stable.git/blobdiff - arch/arm/vdso/Makefile
ARM: 8867/1: vdso: pass --be8 to linker if necessary
[thirdparty/kernel/stable.git] / arch / arm / vdso / Makefile
index fadf554d939176c99db0c6e7ac5a0f2acca70b4c..1f5ec9741e6d4af568e93f1193a34844fa882ad8 100644 (file)
@@ -10,9 +10,10 @@ obj-vdso := $(addprefix $(obj)/, $(obj-vdso))
 ccflags-y := -fPIC -fno-common -fno-builtin -fno-stack-protector
 ccflags-y += -DDISABLE_BRANCH_PROFILING
 
-ldflags-y = -Bsymbolic --no-undefined -soname=linux-vdso.so.1 \
+ldflags-$(CONFIG_CPU_ENDIAN_BE8) := --be8
+ldflags-y := -Bsymbolic --no-undefined -soname=linux-vdso.so.1 \
            -z max-page-size=4096 -z common-page-size=4096 \
-           -nostdlib -shared \
+           -nostdlib -shared $(ldflags-y) \
            $(call ld-option, --hash-style=sysv) \
            $(call ld-option, --build-id) \
            -T