[PATCH][v2] powerpc 44x: support for 256KB PAGE_SIZE

Yuri Tikhonov yur at emcraft.com
Mon Dec 22 07:00:07 EST 2008

Hello Andreas,

On Sunday, December 21, 2008 you wrote:

> Yuri Tikhonov <yur at emcraft.com> writes:

>> Because ELF standard supports only page sizes up to 64K, then you should
>> use patched binutils for building applications to be run with the 256KB-
>> page sized kernel. The patch for binutils is rather trivial, and may
>> look as follows:
>> --- binutils/bfd/elf32-ppc.c.orig
>> +++ binutils/bfd/elf32-ppc.c
>> -#define ELF_MAXPAGESIZE                0x10000
>> +#define ELF_MAXPAGESIZE                0x40000

> You don't have to patch it, it's enough to pass -zmax-page-size=0x40000
> to the linker.

 Thanks for pointing this. I guess, the -zmax-page-size option is new 
to binutils Right?

 I'll remove the STDBINUTILS config option from this patch then, and 
correspondingly update the description.

 Regards, Yuri

 Yuri Tikhonov, Senior Software Engineer
 Emcraft Systems, www.emcraft.com

More information about the Linuxppc-dev mailing list