powerpc: modules implement R_PPC64_TOCSAVE relocation.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2014-03-18 17:36:28 +10:30
committed by Anton Blanchard
parent 0e60e46e2a
commit d247da0a8e
2 changed files with 12 additions and 1 deletions

View File

@@ -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,