Merge branches 'fixes' and 'misc'
authorRussell King <rmk+kernel@armlinux.org.uk>
Wed, 3 Jul 2019 09:30:58 +0000 (10:30 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Mon, 8 Jul 2019 10:32:21 +0000 (11:32 +0100)
Fix up the conflict between "VDSO: Drop implicit common-page-size
linker flag" and "vdso: pass --be8 to linker if necessary"

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
arch/arm/vdso/Makefile

index db17544..ca85df2 100644 (file)
@@ -10,8 +10,9 @@ 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 \
-           -z max-page-size=4096 -nostdlib -shared \
+ldflags-$(CONFIG_CPU_ENDIAN_BE8) := --be8
+ldflags-y := -Bsymbolic --no-undefined -soname=linux-vdso.so.1 \
+           -z max-page-size=4096 -nostdlib -shared $(ldflags-y) \
            $(call ld-option, --hash-style=sysv) \
            $(call ld-option, --build-id) \
            -T