]> git.baikalelectronics.ru Git - kernel.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)
commit0ce1b89d2c3952b7eb78477a93529796f0b2e316
treec74a51f7b85fc4d0c19c60a2dfe76fbb6d868096
parentbc12c4dd5a41935f1f1f139f88b66fd3402ec2b3
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