]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita92c7483cf41406a8f24c0bea5a1fb55ba2e928e
treeab5952fa697444cec926d32277af5ee38305bde5
parentf7fc773b7375494d2e8b7764b3da74c0d817b9d9
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