]> www.infradead.org Git - users/jedix/linux-maple.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)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 22 Aug 2024 12:52:29 +0000 (22:52 +1000)
commit6114139c3bdde992f4a19264e4f9bfc100d8d776
treeba170ce27be5e91a9529cd376592765fcf76db39
parentd92b5cc29c792f1d3f0aaa3b29dddfe816c03e88
powerpc/vdso: Don't discard rela sections

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
arch/powerpc/kernel/vdso/vdso32.lds.S
arch/powerpc/kernel/vdso/vdso64.lds.S