]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
powerpc/vdso: Don't discard rela sections
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Tue, 20 Aug 2024 11:28:07 +0000 (13:28 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Sep 2024 09:11:44 +0000 (11:11 +0200)
commitaf4d5630d99161c965f006f9aaef4dc2a19bd10c
treebdde9574892aa9ccb4fc7f79fc4aba5dfbd67dbd
parent547acc20e56792dda8a225d125ce4c26b16ae43d
powerpc/vdso: Don't discard rela sections

[ Upstream commit 6114139c3bdde992f4a19264e4f9bfc100d8d776 ]

After building the VDSO, there is a verification that it contains
no dynamic relocation, see commit aff69273af61 ("vdso: Improve
cmd_vdso_check to check all dynamic relocations").

This verification uses readelf -r and doesn't work if rela sections
are discarded.

Fixes: 8ad57add77d3 ("powerpc/build: vdso linker warning for orphan sections")
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/45c3e6fc76cad05ad2cac0f5b5dfb4fae86dc9d6.1724153239.git.christophe.leroy@csgroup.eu
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/powerpc/kernel/vdso/vdso32.lds.S
arch/powerpc/kernel/vdso/vdso64.lds.S