This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: PATCH: PR ld/4909: request for more helpful "can't allocate in segment" error message
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: "H.J. Lu" <hjl at lucon dot org>, binutils at sources dot redhat dot com
- Date: Fri, 10 Aug 2007 13:58:03 +0930
- Subject: Re: PATCH: PR ld/4909: request for more helpful "can't allocate in segment" error message
- References: <20070809191119.GA29149@lucon.org> <20070810024302.GA20680@them.org>
On Thu, Aug 09, 2007 at 10:43:02PM -0400, Daniel Jacobowitz wrote:
> On Thu, Aug 09, 2007 at 12:11:19PM -0700, H.J. Lu wrote:
> > We can tell there is an extra .note.gnu.build-id section instead of
>
> I have no objection to the patch - but I can't see how you get from
> the list of sections to why you can't allocate .text, so there may be
> further potential improvements to this error message.
Typically these situations arise with custom linker scripts providing
PHDRS and doing unusual things with lma and/or vma. The list of
sections is a clue that the linker script needs updating to mention
another section.
--
Alan Modra
Australia Development Lab, IBM