PATCH: PR ld/4909: request for more helpful "can't allocate in segment" error message
Alan Modra
amodra@bigpond.net.au
Fri Aug 10 04:28:00 GMT 2007
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
More information about the Binutils
mailing list