Re: [PATCH 27/33] powerpc: Handle new ELFv2 module relocations

2014-03-26 Thread Alan Modra
On Tue, Mar 25, 2014 at 10:44:33PM +1100, Anton Blanchard wrote: > From: Rusty Russell > + case R_PPC64_REL16_HA: > + /* Subtract location pointer */ > + value -= (unsigned long)location; > + value = ((value + 0x8000) >> 16);

[PATCH 27/33] powerpc: Handle new ELFv2 module relocations

2014-03-25 Thread Anton Blanchard
From: Rusty Russell The new ELF ABI tends to use R_PPC64_REL16_LO and R_PPC64_REL16_HA relocations (PC-relative), so implement them. Signed-off-by: Rusty Russell --- arch/powerpc/include/uapi/asm/elf.h | 7 ++- arch/powerpc/kernel/module_64.c | 17 + 2 files changed, 2