Skip to content
Commit 52eb053b authored by David S. Miller's avatar David S. Miller
Browse files

[SPARC64]: Fix linkage of enormous kernels.



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>
parent d6898556
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment