arm64: vdso: Explicitly add build-id option
authorLaura Abbott <labbott@redhat.com>
Wed, 15 May 2019 19:48:24 +0000 (12:48 -0700)
committerWill Deacon <will.deacon@arm.com>
Thu, 16 May 2019 10:45:36 +0000 (11:45 +0100)
Commit 691efbedc60d ("arm64: vdso: use $(LD) instead of $(CC) to
link VDSO") switched to using LD explicitly. The --build-id option
needs to be passed explicitly, similar to x86. Add this option.

Fixes: 691efbedc60d ("arm64: vdso: use $(LD) instead of $(CC) to link VDSO")
Reviewed-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Laura Abbott <labbott@redhat.com>
[will: drop redundant use of 'call ld-option' as requested by Masahiro]
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/vdso/Makefile

index 744b9dbaba036a3822f05b86825c81fd9246d2da..fa230ff09aa10a24ad6dbc3b268c53cff995c8b2 100644 (file)
@@ -12,8 +12,8 @@ obj-vdso := gettimeofday.o note.o sigreturn.o
 targets := $(obj-vdso) vdso.so vdso.so.dbg
 obj-vdso := $(addprefix $(obj)/, $(obj-vdso))
 
-ldflags-y := -shared -nostdlib -soname=linux-vdso.so.1 \
-               $(call ld-option, --hash-style=sysv) -n -T
+ldflags-y := -shared -nostdlib -soname=linux-vdso.so.1 --hash-style=sysv \
+               --build-id -n -T
 
 # Disable gcov profiling for VDSO code
 GCOV_PROFILE := n