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]

PowerPC EABI segment alignment


The PPC SVR4 ABI specifies that segments are aligned on 64K
(0x10000) boundaries. [PPC SVR4 ABI, pg. 5-1].

The PPC EABI says that there are no program loading requirements.
[PPC EABI, pg. 19]

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.

I patch binutils to set ELF_MAXPAGESIZE=8 to make this happen.
How to other folks address this problem?

Binutils with --target=powerpc-eabi is built the same as
--target=powerpc-svr4.  Shouldn't these be different configurations?

--
Michael Eager	 eager@eagercon.com
1960 Park Blvd., Palo Alto, CA 94306  650-325-8077


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