This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: elf-powerpc pagesize discrepancy?
- To: jtc@redback.com
- Subject: Re: elf-powerpc pagesize discrepancy?
- From: Brendan Simon <brendan@dgs.monash.edu.au>
- Date: Wed, 28 Jul 1999 08:45:51 +1000
- CC: binutils@sourceware.cygnus.com
- Organization: CTAM Pty Ltd
- References: <5m7lnln2sm.fsf@jtc.redbacknetworks.com>
- Reply-To: brendan@dgs.monash.edu.au
"J.T. Conklin" wrote:
> I spent some time yesterday tracking down why the linker was adding an
> large amount of space between the end of the text and the beginning of
> the data segment in my images. I tracked this down to the line:
>
> ${RELOCATING+. ${DATA_ADDR- ALIGN(8) + ${MAXPAGESIZE}};}
>
> Which adjusts the address of the next page. Normal enough, but I was
> suprised to discover that MAXPAGESIZE is defined to be 0x40000. This
> struck me as an odd value for a processor with 4K pages.
>
> But I checked with the SysV ABI PPC Supplement and discovered that it
> allows operating systems to cluster physical pages into logical pages
> up to 0x10000 bytes in size (which cooresponds to ELF_MAXPAGESIZE in
> bfd/elf32-ppc.c). But I can't find anything that refers to a 0x40000
> byte page. Similarly, the SysV ABI recommends a 0x2000000 text start
> address, while we use 0x1800000.
>
> With an embedded target, I'm more interested with the physical page
> size. As I checked the PowerPC EABI to see if it modified the page
> size and didn't find anything, it looks like I'll be writing a custom
> linker script. But I thought I'd mention the discrepancy in case this
> matters on powerpc hosts.
Are the Sys V ABI PPC docs and the PowerPC EABI docs publicly available ?
If so, where can I download the latest docs from ?
Thanks,
Brendan Simon.