Re: [PATCH 4/5] powerpc: Make the 64-bit kernel as a position-independent executable

2008-10-09 Thread Grant Likely
On Fri, Sep 26, 2008 at 6:10 PM, Remi Machet <[EMAIL PROTECTED]> wrote: > Hi Paul, > > This patch breaks my build with the following error: > > /u1/rmachet/projects/c2k/linux-powerpc-git $ make cuImage.c2k modules > ARCH=powerpc V=1 > ... > powerpc-linux-gnu-ld -m elf32ppc -Bstatic -o .tmp_vmli

Re: [PATCH 4/5] powerpc: Make the 64-bit kernel as a position-independent executable

2008-09-26 Thread Remi Machet
Hi Paul, This patch breaks my build with the following error: /u1/rmachet/projects/c2k/linux-powerpc-git $ make cuImage.c2k modules ARCH=powerpc V=1 ... powerpc-linux-gnu-ld -m elf32ppc -Bstatic -o .tmp_vmlinux1 -T arch/powerpc/kernel/vmlinux.lds arch/powerpc/kernel/head_32.o arch/powerpc/

[PATCH 4/5] powerpc: Make the 64-bit kernel as a position-independent executable

2008-08-29 Thread Paul Mackerras
This implements CONFIG_RELOCATABLE for 64-bit by making the kernel as a position-independent executable (PIE) when it is set. This involves processing the dynamic relocations in the image in the early stages of booting, even if the kernel is being run at the address it is linked at, since the link

Re: [PATCH 4/5] powerpc: Make the 64-bit kernel as a position-independent executable

2008-08-19 Thread Paul Mackerras
Geert Uytterhoeven writes: > This part broke ppc32: > > | arch/powerpc/kernel/prom.c: In function 'early_init_devtree': > | arch/powerpc/kernel/prom.c:1166: error: '__end_interrupts' undeclared > (first use in this function) > | arch/powerpc/kernel/prom.c:1166: error: (Each undeclared identifier

Re: [PATCH 4/5] powerpc: Make the 64-bit kernel as a position-independent executable

2008-08-19 Thread Geert Uytterhoeven
On Wed, 13 Aug 2008, Paul Mackerras wrote: > --- a/arch/powerpc/kernel/prom.c > +++ b/arch/powerpc/kernel/prom.c > @@ -1163,7 +1163,9 @@ void __init early_init_devtree(void *params) > parse_early_param(); > > /* Reserve LMB regions used by kernel, initrd, dt, etc... */ > - lmb_res

[PATCH 4/5] powerpc: Make the 64-bit kernel as a position-independent executable

2008-08-12 Thread Paul Mackerras
This implements CONFIG_RELOCATABLE for 64-bit by making the kernel as a position-independent executable (PIE). This involves processing the dynamic relocations in the image in the early stages of booting, even if the kernel is being run at the address it is linked at, since the linker does not nec