• Alexander Graf's avatar
    KVM: PPC: Make long relocations be ulong · 2b05d71f
    Alexander Graf authored
    On Book3S KVM we directly expose some asm pointers to C code as
    variables. These need to be relocated and thus break on relocatable
    kernels.
    
    To make sure we can at least build, let's mark them as long instead
    of u32 where 64bit relocations don't work.
    
    This fixes the following build error:
    
    WARNING: 2 bad relocations^M
    > c000000000008590 R_PPC64_ADDR32    .text+0x4000000000008460^M
    > c000000000008594 R_PPC64_ADDR32    .text+0x4000000000008598^M
    
    Please keep in mind that actually using KVM on a relocated kernel
    might still break. This only fixes the compile problem.
    Reported-by: default avatarSubrata Modak <subrata@linux.vnet.ibm.com>
    Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
    Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
    2b05d71f
book3s_rmhandlers.S 6.7 KB