Commit 724c1d32 authored by David S. Miller's avatar David S. Miller

[SPARC64]: Handle WDISP19 relocations in modules.

parent 7efaf898
......@@ -243,6 +243,12 @@ int apply_relocate_add(Elf64_Shdr *sechdrs,
((v >> 2) & 0x3fffff);
break;
case R_SPARC_WDISP19:
v -= (Elf64_Addr) location;
*loc32 = (*loc32 & ~0x7ffff) |
((v >> 2) & 0x7ffff);
break;
case R_SPARC_LO10:
*loc32 = (*loc32 & ~0x3ff) | (v & 0x3ff);
break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment