| From 60cbfaca569d428afded71dd7450397a0a0ff801 Mon Sep 17 00:00:00 2001 |
| From: Sasha Levin <sashal@kernel.org> |
| Date: Mon, 14 Nov 2022 23:27:45 +0530 |
| Subject: powerpc/vdso: Skip objtool from running on VDSO files |
| |
| From: Sathvika Vasireddy <sv@linux.ibm.com> |
| |
| [ Upstream commit d0160bd5d389da247fb5affb6a35ea393d22fedb ] |
| |
| Do not run objtool on VDSO files, by using OBJECT_FILES_NON_STANDARD. |
| |
| Suggested-by: Christophe Leroy <christophe.leroy@csgroup.eu> |
| Tested-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com> |
| Reviewed-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com> |
| Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu> |
| Acked-by: Josh Poimboeuf <jpoimboe@kernel.org> |
| Signed-off-by: Sathvika Vasireddy <sv@linux.ibm.com> |
| Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> |
| Link: https://lore.kernel.org/r/20221114175754.1131267-8-sv@linux.ibm.com |
| Stable-dep-of: d677ce521334 ("powerpc/vdso: Drop -mstack-protector-guard flags in 32-bit files with clang") |
| Signed-off-by: Sasha Levin <sashal@kernel.org> |
| --- |
| arch/powerpc/kernel/vdso/Makefile | 2 ++ |
| 1 file changed, 2 insertions(+) |
| |
| diff --git a/arch/powerpc/kernel/vdso/Makefile b/arch/powerpc/kernel/vdso/Makefile |
| index a2e7b0ce5b191..6a977b0d8ffc3 100644 |
| --- a/arch/powerpc/kernel/vdso/Makefile |
| +++ b/arch/powerpc/kernel/vdso/Makefile |
| @@ -102,3 +102,5 @@ quiet_cmd_vdso64ld_and_check = VDSO64L $@ |
| cmd_vdso64ld_and_check = $(VDSOCC) $(c_flags) $(CC64FLAGS) -o $@ -Wl,-T$(filter %.lds,$^) $(filter %.o,$^) -z noexecstack ; $(cmd_vdso_check) |
| quiet_cmd_vdso64as = VDSO64A $@ |
| cmd_vdso64as = $(VDSOCC) $(a_flags) $(CC64FLAGS) $(AS64FLAGS) -c -o $@ $< |
| + |
| +OBJECT_FILES_NON_STANDARD := y |
| -- |
| 2.43.0 |
| |