This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PowerPC EABI segment alignment


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

AltStyle によって変換されたページ (->オリジナル) /