Re: [RFC v3 PATCH 4/4] Relocation support

2008-07-21 Thread Mohan Kumar M
Segher Boessenkool wrote: This patch changes all LOAD_REG_ADDR macro calls to LOAD_REG_IMMEDIATE to make sure that we load the correct address. Did you figure out _why_ LOAD_REG_ADDR doesn't work? Using LOAD_REG_IMMEDIATE is actually a step back, it makes the kernel binary non-PIC. And

Re: [RFC v3 PATCH 4/4] Relocation support

2008-07-21 Thread Mohan Kumar M
I split the patch 4: Relocation support into 3 patches 1. Generic kernel support for relocatable 2. Kdump kernel support for relocatable 3. LOAD_REG_IMMEDIATE macro replacement Relocation support Add relocatable kernel support like take care when accessing absolute symbols in the code by

Re: [RFC v3 PATCH 4/4] Relocation support

2008-07-18 Thread Segher Boessenkool
This patch changes all LOAD_REG_ADDR macro calls to LOAD_REG_IMMEDIATE to make sure that we load the correct address. Did you figure out _why_ LOAD_REG_ADDR doesn't work? Using LOAD_REG_IMMEDIATE is actually a step back, it makes the kernel binary non-PIC. And LOAD_REG_ADDR _should_ work just

[RFC v3 PATCH 4/4] Relocation support

2008-07-17 Thread Mohan Kumar M
Relocation support This patch changes all LOAD_REG_ADDR macro calls to LOAD_REG_IMMEDIATE to make sure that we load the correct address. It also takes care of when accessing absolute symbols in the code by adding the relocation kernel base address. Signed-off-by: Mohan Kumar M [EMAIL PROTECTED]