bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/4909] New: request for more helpful "can't allocate in segment"


From: dmosberger at gmail dot com
Subject: [Bug ld/4909] New: request for more helpful "can't allocate in segment" error message
Date: 9 Aug 2007 16:53:58 -0000

Recently, a sanity-check was added to ld to ensure that the link fails if a
section didn't make it into the output file.  That seems reasonable enough, but
unfortunately, the error message produced does not help at all in tracking down
the error.  For example, on the Linux kernel, we had to deal with an error
message of the form:

  ld: .tmp_vmlinux1: section `.text' can't be allocated in segment 0
  ld: final link failed: Bad value

This was due to the fact that a "notes" section was added the to kernel which
didn't get linked into the kernel.  Fixing the problem was easy, but tracking
down the source of the problem was very time-consuming.  It would be very
helpful if the error message could be improved, so as to give a hint as to where
the problem is coming from.

-- 
           Summary: request for more helpful "can't allocate in segment"
                    error message
           Product: binutils
           Version: 2.19 (HEAD)
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: ld
        AssignedTo: unassigned at sources dot redhat dot com
        ReportedBy: dmosberger at gmail dot com
                CC: bug-binutils at gnu dot org,hjl at lucon dot org
 GCC build triplet: any
  GCC host triplet: any
GCC target triplet: any


http://sourceware.org/bugzilla/show_bug.cgi?id=4909

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]