This is the mail archive of the
mailing list for the binutils project.
Re: PowerPC EABI segment alignment
- From: Daniel Jacobowitz <drow at false dot org>
- To: Michael Eager <eager at eagercon dot com>
- Cc: binutils at sourceware dot org
- Date: Mon, 3 Mar 2008 22:11:57 -0500
- Subject: Re: PowerPC EABI segment alignment
- References: <47C6FB7F.firstname.lastname@example.org> <20080229141258.GA4659@caradoc.them.org> <47CCBA71.email@example.com>
On Mon, Mar 03, 2008 at 06:56:49PM -0800, Michael Eager wrote:
>>> Binutils follows the SVR4 specification, even when built with
>>> --target=powerpc-eabi and sets segment alignment as 0x10000.
>>> (Except for QNX, where the alignment is 0x1000). This causes problems
>>> with non-hosted PPC boards with limited memory: the desired alignment
>>> is 8 bytes, to avoid memory holes.
> -N makes read-only sections writable which leads them to
> being merged with writable sections. That's undesirable
> when you want to put R/O data in ROM and R/W in RAM.
> Text segment is still aligned on a 64K boundary, IIRC.
I don't understand. How can you both want to avoid padding
to a page boundary, and want to put ROM and RAM in different
devices? If you want the segments in different devices you
need to align between them.