• David S. Miller's avatar
    [SPARC64]: Fix linkage of enormous kernels. · 52eb053b
    David S. Miller authored
    This was found by make randconfig
    
    If the kernel .text is very large, the .fixup section branches
    are too far away to be relocated correctly.
    
    Use "sethi %hi(label), reg; jmpl reg + %lo(label); %g0" sequence
    instead of the branch to fix this.
    
    There is another case in switch_to() involving a branch, which
    is fixed similarly.
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    52eb053b
system.h 9.41 KB