]> www.infradead.org Git - users/dwmw2/linux.git/commit
powerpc/build: move got, toc, plt, branch_lt sections to read-only
authorNicholas Piggin <npiggin@gmail.com>
Fri, 16 Sep 2022 04:07:51 +0000 (14:07 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 26 Sep 2022 10:58:17 +0000 (20:58 +1000)
commitf21ba4499a15b76ad6013ca0a60873dbcf164c7b
treec74a51f7b85fc4d0c19c60a2dfe76fbb6d868096
parent1faa1235c1a00614bc4849a8dbd0790363c9a22f
powerpc/build: move got, toc, plt, branch_lt sections to read-only

This moves linker-related tables from .data to read-only area.
Relocations are performed at early boot time before memory is protected,
after which there should be no modifications required.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
[mpe: Don't use SPECIAL as reported by lkp@intel.com]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220916040755.2398112-4-npiggin@gmail.com
arch/powerpc/kernel/vmlinux.lds.S