]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/build: put sys_call_table in .data.rel.ro if RELOCATABLE
authorNicholas Piggin <npiggin@gmail.com>
Fri, 16 Sep 2022 04:07:55 +0000 (14:07 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 26 Sep 2022 10:58:17 +0000 (20:58 +1000)
commit66214a7e3d7214aeeb79e41f99bcf4817bc3c48c
tree6991167a022e3981f3441bc7b6711b6408a267fb
parent877142b6248340b05d2ffaab51676c3745a37f48
powerpc/build: put sys_call_table in .data.rel.ro if RELOCATABLE

Const function pointers by convention live in .data.rel.ro if they need
to be relocated. Now that .data.rel.ro is linked into the read-only
region, put them in the right section. This doesn't make much practical
difference, but it will make the C conversion of sys_call_table a
smaller change as far as linking goes.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220916040755.2398112-8-npiggin@gmail.com
arch/powerpc/kernel/systbl.S