PATCH: ld/2537: Linker doesn't allow sections reserved for applications.

H. J. Lu hjl@lucon.org
Wed Apr 19 02:09:00 GMT 2006


On Wed, Apr 19, 2006 at 10:03:39AM +0930, Alan Modra wrote:
> On Tue, Apr 18, 2006 at 05:13:19PM -0700, H. J. Lu wrote:
> > On Wed, Apr 19, 2006 at 09:20:16AM +0930, Alan Modra wrote:
> > > On Tue, Apr 18, 2006 at 09:01:10AM -0700, H. J. Lu wrote:
> > > > Here is the updated patch. If section reserved for applications has
> > > > SHF_ALLOC, linker can't handle it properly.
> > > 
> > > I'm curious.  Why doesn't the linker do what you expect?
> > 
> > It is not what I expect. It is I don't know what applications will
> > expect.
> 
> Why is this any different for non-SHF_ALLOC sections?

non-SHF_ALLOC sections won't be the parts of image. We don't need to
put them in segments. We can leave them as is without changing the
final image.


H.J.



More information about the Binutils mailing list