powerpc: modules implement R_PPC64_TOCSAVE relocation.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:

committed by
Anton Blanchard

parent
0e60e46e2a
commit
d247da0a8e
@@ -454,6 +454,14 @@ int apply_relocate_add(Elf64_Shdr *sechdrs,
|
||||
*location = value - (unsigned long)location;
|
||||
break;
|
||||
|
||||
case R_PPC64_TOCSAVE:
|
||||
/*
|
||||
* Marker reloc indicates we don't have to save r2.
|
||||
* That would only save us one instruction, so ignore
|
||||
* it.
|
||||
*/
|
||||
break;
|
||||
|
||||
default:
|
||||
printk("%s: Unknown ADD relocation: %lu\n",
|
||||
me->name,
|
||||
|
Reference in New Issue
Block a user