This is the mail archive of the
mailing list for the binutils project.
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.