]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
powerpc/64e: fix CONFIG_RELOCATABLE build warnings
authorNicholas Piggin <npiggin@gmail.com>
Wed, 30 Jun 2021 07:46:14 +0000 (17:46 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 30 Jun 2021 12:21:19 +0000 (22:21 +1000)
commitfce01acf830a697110ed72ecace4b0afdbcd53cb
tree738037e76c9b5a8008adfc8c20ea8ac687a62ff4
parent5567b1ee29b7a83e8c01d99d34b5bbd306ce0bcf
powerpc/64e: fix CONFIG_RELOCATABLE build warnings

CONFIG_RELOCATABLE=y causes build warnings from unresolved relocations.
Fix these by using TOC addressing for these cases.

Commit 24d33ac5b8ff ("powerpc/64s: Make prom_init require RELOCATABLE")
caused some 64e configs to select RELOCATABLE resulting in these
warnings, but the underlying issue was already there.

This passes basic qemu testing.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210630074621.2109197-3-npiggin@gmail.com
arch/powerpc/kernel/exceptions-64e.S