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: Problem with AMD64 ld with linker script


On Fri, Oct 06, 2006 at 12:54:51AM -0400, Daniel Jacobowitz wrote:
> On Thu, Oct 05, 2006 at 07:00:33PM +0200, Peter Bindels wrote:
> > As soon as I use a linker script, the alignments for all sections
> > immediately jump to 2^20, with no possible way to get the alignment
> > down. As a result of that, the .text is at 0x100000, .data is at
> > 0x200000 and .init (kernel-specific section) is at 0x300000. That
> > results in a binary over 3 megabytes in size, albeit very sparse,
> > where I wanted about a 64k binary.
> 
> I experimented with this.  It's doing what you asked it to.  It's the
> maximum legal page size being enforced: you can't map pages from the

You can use

  -z max-page-size=SIZE Set maximum page size to SIZE

to change the maximum page size with the new linker.


H.J.


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