bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/3107] ld internal error ldlang.c 4272


From: nickc at redhat dot com
Subject: [Bug binutils/3107] ld internal error ldlang.c 4272
Date: 7 Sep 2006 18:02:10 -0000

------- Additional Comments From nickc at redhat dot com  2006-09-07 18:02 
-------
Hi Rus,

  Thanks for the test case, and my apologese for taking so long to get back to
you.  The problem arises because of a bug in your linker script.  You are not
defining an entry point, so the linker ends up garbage collecting and discarding
the entire .text section, something that it was never expecting to do.

  I have uploaded a patch which replaces the abort inside the linker with a
slightly more helpful warning message.  In order to avoid the problem altogether
you should add this line to your linker script:

  ENTRY (main)

(Or some other symbol name, depending upon how you want to perform your run-time
startup).

  Please let me know if you have any difficulties with this patch.

Cheers
  Nick

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING


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

------- 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]