Re: [PATCH] mips: Add build salt to the vDSO

From: Thomas Bogendoerfer

Date: Mon Jun 29 2026 - 13:48:53 EST


On Thu, Jun 18, 2026 at 06:12:21PM +0200, Bastian Blank wrote:
> The vDSO needs to have a unique build id in a similar manner
> to the kernel and modules. Use the build salt macro.
>
> Signed-off-by: Bastian Blank <waldi@xxxxxxxxxx>
> ---
> I was not able to properly test this change, due to unavailable
> toolchain.
>
> arch/mips/vdso/elf.S | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/arch/mips/vdso/elf.S b/arch/mips/vdso/elf.S
> index a25cb147f1ca..821fcffe7655 100644
> --- a/arch/mips/vdso/elf.S
> +++ b/arch/mips/vdso/elf.S
> @@ -8,6 +8,7 @@
>
> #include <asm/isa-rev.h>
>
> +#include <linux/build-salt.h>
> #include <linux/elfnote.h>
> #include <linux/version.h>
>
> @@ -15,6 +16,8 @@ ELFNOTE_START(Linux, 0, "a")
> .long LINUX_VERSION_CODE
> ELFNOTE_END
>
> +BUILD_SALT
> +
> /*
> * The .MIPS.abiflags section must be defined with the FP ABI flags set
> * to 'any' to be able to link with both old and new libraries.
> --
> 2.53.0

applied to mips-fixes

Thomas.

--
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea. [ RFC1925, 2.3 ]