powerpc/pseries: move hcall_tracepoint_refcount out of .toc
authorNicholas Piggin <npiggin@gmail.com>
Mon, 26 Sep 2022 05:38:23 +0000 (15:38 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 26 Sep 2022 10:57:42 +0000 (20:57 +1000)
commit9a10ccb29c0a2befa5a9f691ed0ae37ee3e799a8
treeab5952fa697444cec926d32277af5ee38305bde5
parentec5c3a359cfaf68d4db30969745db18f9928aab9
powerpc/pseries: move hcall_tracepoint_refcount out of .toc

The .toc section is not really intended for arbitrary data. Writable
data in particular prevents making the TOC read-only after relocation.
Move hcall_tracepoint_refcount into the .data section.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220926053823.2668799-1-npiggin@gmail.com
arch/powerpc/platforms/pseries/hvCall.S