This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: ld and holes in the address space
- From: Daniel Jacobowitz <drow at false dot org>
- To: Greg McGary <greg at mcgary dot org>
- Cc: binutils at sources dot redhat dot com
- Date: Mon, 2 Oct 2006 18:01:15 -0400
- Subject: Re: ld and holes in the address space
- References: <msy7ryxunz.fsf@mcgary.org>
On Mon, Oct 02, 2006 at 02:41:20PM -0700, Greg McGary wrote:
> I have an employer who desires that ld be able to populate the .text
> address space around "holes". The addresses and sizes of the holes
> will be declared in the linker script.
> Has anything like this been contemplated before? If I implement this,
> what are the chances that the maintainers will want this feature?
FYI, commercial linkers I've worked with have this feature; you specify
that an input section may be placed in any of a number of output
regions. This is one of the things that I've always wondered why no
one had ever needed in GNU LD.
For instance, the armlink syntax for this would be something like
L1 0x100000 0x10000 {
R1 +0 {
.ANY (+RO)
}
}
L2 0x400000 0x20000 {
R2 +0 {
.ANY (+RO)
}
}
--
Daniel Jacobowitz
CodeSourcery