PowerPC EABI segment alignment
Daniel Jacobowitz
drow@false.org
Tue Mar 4 03:12:00 GMT 2008
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.
--
Daniel Jacobowitz
CodeSourcery
More information about the Binutils
mailing list